712866
From 99e72a4b1cb79a402c9c1338f7cfb8dc22bf16e3 Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Tue, 6 Sep 2016 15:17:49 +0200
712866
Subject: [PATCH] fcoe: only install /etc/hba.conf, it it exists
712866
712866
https://bugzilla.redhat.com/show_bug.cgi?id=1369342
712866
---
712866
 modules.d/95fcoe/module-setup.sh | 2 +-
712866
 1 file changed, 1 insertion(+), 1 deletion(-)
712866
712866
diff --git a/modules.d/95fcoe/module-setup.sh b/modules.d/95fcoe/module-setup.sh
5c6c2a
index af2798dc..4bab0c7d 100755
712866
--- a/modules.d/95fcoe/module-setup.sh
712866
+++ b/modules.d/95fcoe/module-setup.sh
712866
@@ -69,7 +69,7 @@ cmdline() {
712866
 install() {
712866
     inst_multiple ip dcbtool fipvlan lldpad readlink lldptool fcoemon fcoeadm
712866
     inst_libdir_file 'libhbalinux.so*'
712866
-    inst "/etc/hba.conf" "/etc/hba.conf"
712866
+    [[ -e /etc/hba.conf ]] && inst "/etc/hba.conf" "/etc/hba.conf"
712866
 
712866
     mkdir -m 0755 -p "$initdir/var/lib/lldpad"
712866
     mkdir -m 0755 -p "$initdir/etc/fcoe"