]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
95dasd_mod: make dasd_cio_free optional
authorHannes Reinecke <hare@suse.de>
Fri, 29 Nov 2013 12:13:44 +0000 (13:13 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 5 Dec 2013 14:13:29 +0000 (15:13 +0100)
dasd_cio_free is a RedHat-specific tool, so make it optional.

Signed-off-by: Hannes Reinecke <hare@suse.de>
modules.d/95dasd_mod/module-setup.sh
modules.d/95dasd_mod/parse-dasd-mod.sh

index 011010df91be6643697b37749738b6798efa10cc..8fde525abbf5678ba32af98c69ae2ee3d37ce429 100755 (executable)
@@ -23,6 +23,7 @@ installkernel() {
 # called by dracut
 install() {
     inst_hook cmdline 31 "$moddir/parse-dasd-mod.sh"
-    inst_multiple dasd_cio_free grep sed seq
+    inst_multiple grep sed seq
+    inst_multiple -o dasd_cio_free
 }
 
index 87c88ed6dd49610af3d0056e843d9835556609b2..0236d12f7bfeece22917b65ea1b363815bf0167d 100755 (executable)
@@ -15,4 +15,6 @@ if [ -n "$mod_args" ]; then
 fi
 
 unset dasd_arg
-dasd_cio_free
+if [ -x /sbin/dasd_cio_free ] ; then
+    dasd_cio_free
+fi