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