]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dmsquash-live: install the "real" eject
authorHarald Hoyer <harald@redhat.com>
Fri, 14 Aug 2009 14:18:27 +0000 (16:18 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 14 Aug 2009 15:27:49 +0000 (17:27 +0200)
eject might be a symlink to consolehelper

modules.d/90dmsquash-live/install

index e8c78c042eadf2521c15cf66ef2d1ff2c44e37b7..db7408b91f9554f8325d0c36b75bd7fcfd681409 100755 (executable)
@@ -3,7 +3,14 @@ inst dmsetup
 inst blkid
 inst dd
 inst losetup
-inst eject
+
+# eject might be a symlink to consolehelper
+if [ -L /usr/bin/eject ]; then
+    dracut_install /usr/sbin/eject
+else
+    inst eject
+fi
+
 inst blockdev
 which checkisomd5 >/dev/null 2>&1 && inst checkisomd5
 inst_hook cmdline 30 "$moddir/parse-dmsquash-live.sh"