]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fcoe-uefi: do not include, if fcoe utils not installed
authorHarald Hoyer <harald@redhat.com>
Tue, 7 Jan 2014 13:34:55 +0000 (14:34 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 13 Jan 2014 08:51:04 +0000 (09:51 +0100)
modules.d/95fcoe-uefi/module-setup.sh

index 653d88ebbefa9a5932cf499d803c34b983b29a55..c91f77540a3a3a1b4c6ac59e5aea554932d7447d 100755 (executable)
@@ -4,6 +4,9 @@
 
 # called by dracut
 check() {
+    for i in dcbtool fipvlan lldpad ip readlink; do
+        type -P $i >/dev/null || return 1
+    done
     return 0
 }
 
@@ -17,4 +20,3 @@ depends() {
 install() {
     inst_hook cmdline 20 "$moddir/parse-uefifcoe.sh"
 }
-