Blame SOURCES/0114-fcoe-uefi-do-not-include-if-fcoe-utils-not-installed.patch

a56a5e
From d802e985aed9dbe48f7b9165f3eddd0be7d47c27 Mon Sep 17 00:00:00 2001
966cef
From: Harald Hoyer <harald@redhat.com>
966cef
Date: Tue, 7 Jan 2014 14:34:55 +0100
966cef
Subject: [PATCH] fcoe-uefi: do not include, if fcoe utils not installed
966cef
966cef
---
966cef
 modules.d/95fcoe-uefi/module-setup.sh | 4 +++-
966cef
 1 file changed, 3 insertions(+), 1 deletion(-)
966cef
966cef
diff --git a/modules.d/95fcoe-uefi/module-setup.sh b/modules.d/95fcoe-uefi/module-setup.sh
966cef
index 653d88e..c91f775 100755
966cef
--- a/modules.d/95fcoe-uefi/module-setup.sh
966cef
+++ b/modules.d/95fcoe-uefi/module-setup.sh
966cef
@@ -4,6 +4,9 @@
966cef
 
966cef
 # called by dracut
966cef
 check() {
966cef
+    for i in dcbtool fipvlan lldpad ip readlink; do
966cef
+        type -P $i >/dev/null || return 1
966cef
+    done
966cef
     return 0
966cef
 }
966cef
 
966cef
@@ -17,4 +20,3 @@ depends() {
966cef
 install() {
966cef
     inst_hook cmdline 20 "$moddir/parse-uefifcoe.sh"
966cef
 }
966cef
-