summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-11-27 14:05:16 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:59:20 +0100
commit10a6f1eced6f2df854ec095dd7faeaddf19d83e0 (patch)
tree3aed4f26732f67e8b5d0498b070d09c9252229ef
parent59a3bf0fc95889a3c4034829dec5492c5108aec9 (diff)
downloadlive-boot-10a6f1eced6f2df854ec095dd7faeaddf19d83e0.tar.gz
live-boot-10a6f1eced6f2df854ec095dd7faeaddf19d83e0.zip
Logging to /var/log/live-boot.log instead of /var/log/live.log for future consistency with live-config.
-rwxr-xr-xscripts/live8
-rw-r--r--scripts/live-functions2
-rw-r--r--scripts/live-helpers2
3 files changed, 6 insertions, 6 deletions
diff --git a/scripts/live b/scripts/live
index 1baf82e..90a9333 100755
--- a/scripts/live
+++ b/scripts/live
@@ -1553,7 +1553,7 @@ check_dev ()
if [ "$ISO_DEVICE" = "/" ]
then
- echo "Warning: device for bootoption isofrom= ($FROMISO) not found.">>/live.log
+ echo "Warning: device for bootoption isofrom= ($FROMISO) not found.">>/live-boot.log
else
mkdir /isofrom
mount -t auto "$ISO_DEVICE" /isofrom
@@ -1765,9 +1765,9 @@ mountroot ()
exec 6>&1
exec 7>&2
- exec > live.log
+ exec > live-boot.log
exec 2>&1
- tail -f live.log >&7 &
+ tail -f live-boot.log >&7 &
tailpid="${!}"
# Ensure 'panic' function is overridden
@@ -1927,5 +1927,5 @@ mountroot ()
exec 1>&6 6>&-
exec 2>&7 7>&-
kill ${tailpid}
- [ -w "${rootmnt}/var/log/" ] && cp live.log "${rootmnt}/var/log/" 2>/dev/null
+ [ -w "${rootmnt}/var/log/" ] && cp live-boot.log "${rootmnt}/var/log/" 2>/dev/null
}
diff --git a/scripts/live-functions b/scripts/live-functions
index 5efe432..f426ff9 100644
--- a/scripts/live-functions
+++ b/scripts/live-functions
@@ -76,7 +76,7 @@ panic() {
DEB_3="\033[1;31m\`. \`'\` \033[0m"
DEB_4="\033[1;31m \`- \033[0m"
- LIVELOG="\033[1;37m/live.log\033[0m"
+ LIVELOG="\033[1;37m/live-boot.log\033[0m"
DEBUG="\033[1;37mdebug\033[0m"
# Reset redirections to avoid buffering
diff --git a/scripts/live-helpers b/scripts/live-helpers
index b1883ff..06bd186 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -275,7 +275,7 @@ try_mount ()
fstype=$(get_fstype "${dev}")
fi
mount -t "${fstype}" -o "${opts}" "${dev}" "${mountp}" || \
- ( echo "SKIPPING: Cannot mount ${dev} on ${mountp}, fstype=${fstype}, options=${opts}" > live.log && return 0 )
+ ( echo "SKIPPING: Cannot mount ${dev} on ${mountp}, fstype=${fstype}, options=${opts}" > live-boot.log && return 0 )
fi
}