From 1307862b89c95011961f994de925abf83b4be23f Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Tue, 2 Feb 2016 15:33:44 +0100 Subject: Live init: eject the Live CDROM/DVD medium after loading modules into RAM. Only relevant if the user added the 'toram' boot option. --- liveinit | 3 +++ 1 file changed, 3 insertions(+) (limited to 'liveinit') diff --git a/liveinit b/liveinit index a0067f8..dde270f 100755 --- a/liveinit +++ b/liveinit @@ -388,6 +388,9 @@ if [ "$RESCUE" = "" ]; then if [ $TORAM -ne 0 ]; then echo "${INITRD}: Live OS copied to RAM, you can remove the Live medium." + if [ "LIVEFS" = "iso9660" ]; then + eject ${LIVEMEDIA} + fi fi # Setup persistence in case our media is writable, *and* the user -- cgit v1.2.3