[SCM] live-boot branch, debian-next, updated. debian/3.0_a27-1-5-g5c79de1

Daniel Baumann daniel at debian.org
Tue Apr 10 10:41:39 UTC 2012


The following commit has been merged in the debian-next branch:
commit 5c79de1153d3ee4802deaa85bde82a3bd022f1e2
Author: Daniel Baumann <daniel at debian.org>
Date:   Tue Apr 10 12:40:59 2012 +0200

    Using boot.log and /var/log/live/boot.log respectively for overall consistency within all debian-live tools.

diff --git a/scripts/live b/scripts/live
index 371fac4..70ea06e 100755
--- a/scripts/live
+++ b/scripts/live
@@ -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
 }
diff --git a/scripts/live-functions b/scripts/live-functions
index f426ff9..f3668f1 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-boot.log\033[0m"
+	LIVELOG="\033[1;37m/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 b90637a..1414156 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -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
 }
 

-- 
live-boot



More information about the debian-live-changes mailing list