[SCM] Debian Live initramfs hook branch, master, updated. 1.139.1-4-21-gb57e292

Daniel Baumann daniel at debian.org
Mon Nov 24 11:29:14 UTC 2008


The following commit has been merged in the master branch:
commit b57e29227ed738ef687dd9bd58b985dbefe63b3d
Author: Daniel Baumann <daniel at debian.org>
Date:   Mon Nov 24 12:27:04 2008 +0100

    Ejecting live media when booting with toram. Can be disabled with optional 'noeject' boot parameter.

diff --git a/manpages/live-initramfs.en.7.txt b/manpages/live-initramfs.en.7.txt
index de8a67c..c48e9ec 100644
--- a/manpages/live-initramfs.en.7.txt
+++ b/manpages/live-initramfs.en.7.txt
@@ -164,6 +164,11 @@ This parameter disables the automatic terminal login only, not touching gdk/kdm.
 This parameter disables the automatic login of gdm/kdm only, not touching
 terminals.
 
+  noeject::
+
+This parameter disable the automatical ejection of the live media when using
+toram bootparameter to copy live system into RAM.
+
   nofastboot::
 
 This parameter disables the default disabling of filesystem checks in
diff --git a/scripts/live b/scripts/live
index 389fc21..b1af2a0 100755
--- a/scripts/live
+++ b/scripts/live
@@ -236,6 +236,11 @@ Arguments ()
 				export NOCONSOLEKEYBOARD
 				;;
 
+			noeject)
+				NOEJECT="Yes"
+				export NOEJECT
+				;;
+
 			nofastboot)
 				NOFASTBOOT="Yes"
 				export NOFASTBOOT
@@ -662,6 +667,12 @@ copy_live_to ()
 		mount -r -o move ${copyto} ${copyfrom}
 	fi
 
+	# Eject live media
+	if [ -x /bin/eject ] && [ "${NOEJECT}" != "Yes" ]
+	then
+		eject ${dev}
+	fi
+
 	rmdir ${copyto}
 	return 0
 }

-- 
Debian Live initramfs hook



More information about the debian-live-changes mailing list