[SCM] Debian Live initramfs hook branch, master, updated. 1.139.1-2-19-g79d1725

Marco Amadori amadorim at vdavda.com
Wed Sep 17 06:52:05 UTC 2008


The following commit has been merged in the master branch:
commit c105bddb9fd492edd2479223f2a47dbe745e27e4
Author: Marco Amadori <amadorim at vdavda.com>
Date:   Tue Sep 16 12:11:41 2008 +0200

    Override maybe_break from initramfs-tools.
    
    * "break=<phase>" boot option, previously lead to the overrided panic
      function which shows a huge bug message info, which in that particular
      case is misleading, since the "dropping to a shell" is wanted.
    
    Signed-off-by: Marco Amadori <amadorim at vdavda.com>

diff --git a/scripts/live-functions b/scripts/live-functions
index 49b4a3a..d19b0d5 100644
--- a/scripts/live-functions
+++ b/scripts/live-functions
@@ -60,6 +60,16 @@ lang2locale() {
 	fi
 }
 
+# Override maybe_break from scripts/functions
+maybe_break()
+{
+	if [ "${break}" = "$1" ]; then
+		# Call original panic
+		. /scripts/functions
+		panic "Spawning shell within the initramfs"
+	fi
+}
+
 # Override panic from scripts/functions
 panic() {
 

-- 
Debian Live initramfs hook



More information about the debian-live-changes mailing list