]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
95dasd: Only install module if normalize_dasd_arg is present
authorHannes Reinecke <hare@suse.de>
Fri, 29 Nov 2013 12:13:43 +0000 (13:13 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 5 Dec 2013 14:13:29 +0000 (15:13 +0100)
normalize_dasd_arg is a RedHat specific script, so no point
installing this module if the script isn't present.

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

index 16207bcd3de4e48efa245881c70a077d6c8eb60e..9c93d4033276322161af63a30ab201bc69641f04 100755 (executable)
@@ -5,6 +5,7 @@
 # called by dracut
 check() {
     local _arch=$(uname -m)
+    [ -x /sbin/normalize_dasd_arg ] || return 1
     [ "$_arch" = "s390" -o "$_arch" = "s390x" ] || return 1
     return 0
 }