]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
95fcoe: load 'libfcoe' module as a fallback
authorKairui Song <kasong@redhat.com>
Wed, 12 Jun 2019 06:27:44 +0000 (14:27 +0800)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 19 Jul 2019 14:19:07 +0000 (16:19 +0200)
The kernel may only enable 'libfcoe' module. Some modules like bnx2fc
provides FCoE but only depend on 'libfcoe'. Loading 'fcoe' module may
fail but the kernel do support FCoE.

'libfcoe' will be installed as a dependency when installing block device
drivers if it's required. So no need to install it in installkernel.

Signed-off-by: Kairui Song <kasong@redhat.com>
modules.d/95fcoe/parse-fcoe.sh

index c05adb60fc97dc7d05411f01f1c834dd47aee2aa..8bb55c6e67093e8546c377ac893ff1470dfd6927 100755 (executable)
@@ -23,7 +23,7 @@ fi
 # If it's not set we don't continue
 [ -z "$fcoe" ] && return
 
-[ -e /sys/bus/fcoe/ctlr_create ] || modprobe -b -a fcoe || die "FCoE requested but kernel/initrd does not support FCoE"
+[ -e /sys/bus/fcoe/ctlr_create ] || modprobe -b -a fcoe || modprobe -b -a libfcoe || die "FCoE requested but kernel/initrd does not support FCoE"
 
 initqueue --onetime modprobe -b -q bnx2fc