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

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