121229
From 1851348709df5413a767faecdee908534baf0da1 Mon Sep 17 00:00:00 2001
121229
From: Kairui Song <kasong@redhat.com>
121229
Date: Wed, 12 Jun 2019 14:27:44 +0800
121229
Subject: [PATCH] 95fcoe: load 'libfcoe' module as a fallback
121229
121229
The kernel may only enable 'libfcoe' module. Some modules like bnx2fc
121229
provides FCoE but only depend on 'libfcoe'. Loading 'fcoe' module may
121229
fail but the kernel do support FCoE.
121229
121229
'libfcoe' will be installed as a dependency when installing block device
121229
drivers if it's required. So no need to install it in installkernel.
121229
121229
Signed-off-by: Kairui Song <kasong@redhat.com>
121229
(cherry picked from commit 65fe1af2eca7d0ed340520577ab861fcd695b34a)
121229
121229
Resolves: #1719645
121229
---
121229
 modules.d/95fcoe/parse-fcoe.sh | 2 +-
121229
 1 file changed, 1 insertion(+), 1 deletion(-)
121229
121229
diff --git a/modules.d/95fcoe/parse-fcoe.sh b/modules.d/95fcoe/parse-fcoe.sh
121229
index 75cca9a5..12701cdb 100755
121229
--- a/modules.d/95fcoe/parse-fcoe.sh
121229
+++ b/modules.d/95fcoe/parse-fcoe.sh
121229
@@ -18,7 +18,7 @@
121229
 # If it's not set we don't continue
121229
 [ -z "$fcoe" ] && return
121229
 
121229
-[ -e /sys/bus/fcoe/ctlr_create ] || modprobe -b -a fcoe || die "FCoE requested but kernel/initrd does not support FCoE"
121229
+[ -e /sys/bus/fcoe/ctlr_create ] || modprobe -b -a fcoe || modprobe -b -a libfcoe || die "FCoE requested but kernel/initrd does not support FCoE"
121229
 
121229
 initqueue --onetime modprobe -b -q bnx2fc
121229
 
121229