summaryrefslogtreecommitdiffstats
path: root/liveinit
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2016-02-02 15:33:44 +0100
committer Eric Hameleers <alien@slackware.com>2016-02-02 15:33:44 +0100
commit1307862b89c95011961f994de925abf83b4be23f (patch)
treef6580d3c6012c85a02bd0aaacd5e97681c6ed66e /liveinit
parent40c17e2451819d30dfa399f4e3a078c4113a418b (diff)
downloadliveslak-1307862b89c95011961f994de925abf83b4be23f.tar.gz
liveslak-1307862b89c95011961f994de925abf83b4be23f.tar.xz
Live init: eject the Live CDROM/DVD medium after loading modules into RAM.
Only relevant if the user added the 'toram' boot option.
Diffstat (limited to 'liveinit')
-rwxr-xr-xliveinit3
1 files changed, 3 insertions, 0 deletions
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