]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dmsquash-live: install eject with dracut_install
authorHarald Hoyer <harald@redhat.com>
Fri, 1 Jul 2011 08:14:47 +0000 (10:14 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 1 Jul 2011 08:14:47 +0000 (10:14 +0200)
the new search path does the right thing

modules.d/90dmsquash-live/module-setup.sh

index 493d11d248e325795c4de169e8041a06c129b67d..e1a8996b3f019c105c121df3675a00ea8b4a0947 100755 (executable)
@@ -27,12 +27,7 @@ install() {
     inst losetup
     inst grep
 
-    # eject might be a symlink to consolehelper
-    if [ -L /usr/bin/eject ]; then
-        dracut_install /usr/sbin/eject
-    else
-        inst eject
-    fi
+    dracut_install eject
 
     inst blockdev
     type -P checkisomd5 >/dev/null && inst checkisomd5