Blame 0029-dmsquash-live-do-not-eject-medium-for-live_ram.patch

Harald Hoyer 12f6cc
From 372c9b9647f039fa02779ca4fae3118c5f08e6f1 Mon Sep 17 00:00:00 2001
Harald Hoyer 12f6cc
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 12f6cc
Date: Thu, 26 Jul 2012 09:25:28 +0200
Harald Hoyer 12f6cc
Subject: [PATCH] dmsquash-live: do not eject medium for live_ram
Harald Hoyer 12f6cc
Harald Hoyer 12f6cc
---
Harald Hoyer 12f6cc
 modules.d/90dmsquash-live/dmsquash-live-root.sh | 1 -
Harald Hoyer 12f6cc
 modules.d/90dmsquash-live/module-setup.sh       | 2 +-
Harald Hoyer 12f6cc
 2 files changed, 1 insertion(+), 2 deletions(-)
Harald Hoyer 12f6cc
Harald Hoyer 12f6cc
diff --git a/modules.d/90dmsquash-live/dmsquash-live-root.sh b/modules.d/90dmsquash-live/dmsquash-live-root.sh
Harald Hoyer 12f6cc
index 15f166b..f8bfca6 100755
Harald Hoyer 12f6cc
--- a/modules.d/90dmsquash-live/dmsquash-live-root.sh
Harald Hoyer 12f6cc
+++ b/modules.d/90dmsquash-live/dmsquash-live-root.sh
Harald Hoyer 12f6cc
@@ -167,7 +167,6 @@ if [ -e "$SQUASHED" ] ; then
Harald Hoyer 12f6cc
         dd if=$SQUASHED of=/squashed.img bs=512 2> /dev/null
Harald Hoyer 12f6cc
         umount -n /run/initramfs/live
Harald Hoyer 12f6cc
         echo "Done copying live image to RAM."
Harald Hoyer 12f6cc
-        eject -p $livedev || :
Harald Hoyer 12f6cc
         SQUASHED="/squashed.img"
Harald Hoyer 12f6cc
     fi
Harald Hoyer 12f6cc
 
Harald Hoyer 12f6cc
diff --git a/modules.d/90dmsquash-live/module-setup.sh b/modules.d/90dmsquash-live/module-setup.sh
Harald Hoyer 12f6cc
index 05603a5..3339e1d 100755
Harald Hoyer 12f6cc
--- a/modules.d/90dmsquash-live/module-setup.sh
Harald Hoyer 12f6cc
+++ b/modules.d/90dmsquash-live/module-setup.sh
Harald Hoyer 12f6cc
@@ -21,7 +21,7 @@ installkernel() {
Harald Hoyer 12f6cc
 
Harald Hoyer 12f6cc
 install() {
Harald Hoyer 12f6cc
     dracut_install umount dmsetup blkid dd losetup grep blockdev
Harald Hoyer 12f6cc
-    dracut_install -o eject checkisomd5
Harald Hoyer 12f6cc
+    dracut_install -o checkisomd5
Harald Hoyer 12f6cc
     inst_hook cmdline 30 "$moddir/parse-dmsquash-live.sh"
Harald Hoyer 12f6cc
     inst_hook pre-udev 30 "$moddir/dmsquash-live-genrules.sh"
Harald Hoyer 12f6cc
     inst_hook pre-udev 30 "$moddir/dmsquash-liveiso-genrules.sh"