Using boot.log and /var/log/live/boot.log respectively for overall consistency within...
authorDaniel Baumann <daniel@debian.org>
Tue, 10 Apr 2012 10:40:59 +0000 (12:40 +0200)
committerDaniel Baumann <daniel@debian.org>
Mon, 4 Jun 2012 15:39:49 +0000 (17:39 +0200)
scripts/live
scripts/live-functions
scripts/live-helpers

index 371fac4..70ea06e 100755 (executable)
@@ -1255,7 +1255,7 @@ check_dev ()
 
                if [ "$ISO_DEVICE" = "/" ]
                then
-                       echo "Warning: device for bootoption fromiso= ($FROMISO) not found.">>/live-boot.log
+                       echo "Warning: device for bootoption fromiso= ($FROMISO) not found.">>/boot.log
                else
                        fs_type=$(get_fstype "${ISO_DEVICE}")
                        if is_supported_fs ${fs_type}
@@ -1266,7 +1266,7 @@ check_dev ()
                                loopdevname=$(setup_loop "/live/fromiso/${ISO_NAME}" "loop" "/sys/block/loop*" "" '')
                                devname="${loopdevname}"
                        else
-                               echo "Warning: unable to mount $ISO_DEVICE." >>/live-boot.log
+                               echo "Warning: unable to mount $ISO_DEVICE." >>/boot.log
                        fi
                fi
        fi
@@ -1499,9 +1499,9 @@ mountroot ()
 
        exec 6>&1
        exec 7>&2
-       exec > live-boot.log
+       exec > boot.log
        exec 2>&1
-       tail -f live-boot.log >&7 &
+       tail -f boot.log >&7 &
        tailpid="${!}"
 
        # Ensure 'panic' function is overridden
@@ -1696,5 +1696,5 @@ mountroot ()
        exec 1>&6 6>&-
        exec 2>&7 7>&-
        kill ${tailpid}
-       [ -w "${rootmnt}/var/log/" ] && cp live-boot.log "${rootmnt}/var/log/" 2>/dev/null
+       [ -w "${rootmnt}/var/log/" ] && mkdir -p /var/log/live && cp boot.log "${rootmnt}/var/log/live" 2>/dev/null
 }
index f426ff9..f3668f1 100644 (file)
@@ -76,7 +76,7 @@ panic() {
        DEB_3="\033[1;31m\`. \`'\`  \033[0m"
        DEB_4="\033[1;31m  \`-    \033[0m"
 
-       LIVELOG="\033[1;37m/live-boot.log\033[0m"
+       LIVELOG="\033[1;37m/boot.log\033[0m"
        DEBUG="\033[1;37mdebug\033[0m"
 
        # Reset redirections to avoid buffering
index b90637a..1414156 100644 (file)
@@ -736,7 +736,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-boot.log && return 0 )
+               ( echo "SKIPPING: Cannot mount ${dev} on ${mountp}, fstype=${fstype}, options=${opts}" > boot.log && return 0 )
        fi
 }