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