]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dmsquash-live: do not eject medium for live_ram
authorHarald Hoyer <harald@redhat.com>
Thu, 26 Jul 2012 07:25:28 +0000 (09:25 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 26 Jul 2012 07:25:28 +0000 (09:25 +0200)
modules.d/90dmsquash-live/dmsquash-live-root.sh
modules.d/90dmsquash-live/module-setup.sh

index 15f166b88054a52703273c27554816a73414e4da..f8bfca653aeb87843df96b881c1ee5e3813d703d 100755 (executable)
@@ -167,7 +167,6 @@ if [ -e "$SQUASHED" ] ; then
         dd if=$SQUASHED of=/squashed.img bs=512 2> /dev/null
         umount -n /run/initramfs/live
         echo "Done copying live image to RAM."
-        eject -p $livedev || :
         SQUASHED="/squashed.img"
     fi
 
index 05603a53485728dd3f3f566ed6e0485726ee8802..3339e1d8ab9a31ba34305542bb29132117ee875f 100755 (executable)
@@ -21,7 +21,7 @@ installkernel() {
 
 install() {
     dracut_install umount dmsetup blkid dd losetup grep blockdev
-    dracut_install -o eject checkisomd5
+    dracut_install -o checkisomd5
     inst_hook cmdline 30 "$moddir/parse-dmsquash-live.sh"
     inst_hook pre-udev 30 "$moddir/dmsquash-live-genrules.sh"
     inst_hook pre-udev 30 "$moddir/dmsquash-liveiso-genrules.sh"