Browse Source

95dasd_mod: make dasd_cio_free optional

dasd_cio_free is a RedHat-specific tool, so make it optional.

Signed-off-by: Hannes Reinecke <hare@suse.de>
master
Hannes Reinecke 11 years ago committed by Harald Hoyer
parent
commit
8b2b77e460
  1. 3
      modules.d/95dasd_mod/module-setup.sh
  2. 4
      modules.d/95dasd_mod/parse-dasd-mod.sh

3
modules.d/95dasd_mod/module-setup.sh

@ -23,6 +23,7 @@ installkernel() { @@ -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
}


4
modules.d/95dasd_mod/parse-dasd-mod.sh

@ -15,4 +15,6 @@ if [ -n "$mod_args" ]; then @@ -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

Loading…
Cancel
Save