Blame SOURCES/0459-fcoe-only-install-etc-hba.conf-it-it-exists.patch

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