From: Hannes Reinecke Date: Fri, 29 Nov 2013 12:13:45 +0000 (+0100) Subject: 95zfcp: Make installation optional X-Git-Tag: 035~74 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=61c0665dad633fdd2358a1a2ce5d25d282673c1a;p=thirdparty%2Fdracut.git 95zfcp: Make installation optional zfcp_cio_free is a RedHat-specific tool, so do not install this module if the program isn't present. Signed-off-by: Hannes Reinecke --- diff --git a/modules.d/95zfcp/module-setup.sh b/modules.d/95zfcp/module-setup.sh index 5d9b506dc..dfbeed5b6 100755 --- a/modules.d/95zfcp/module-setup.sh +++ b/modules.d/95zfcp/module-setup.sh @@ -5,6 +5,7 @@ # called by dracut check() { arch=$(uname -m) + [ -x /sbin/zfcp_cio_free ] || return 1 [ "$arch" = "s390" -o "$arch" = "s390x" ] || return 1 return 0 @@ -12,9 +13,6 @@ check() { # called by dracut depends() { - arch=$(uname -m) - [ "$arch" = "s390" -o "$arch" = "s390x" ] || return 1 - return 0 }