From: Kairui Song Date: Wed, 12 Jun 2019 06:27:44 +0000 (+0800) Subject: 95fcoe: load 'libfcoe' module as a fallback X-Git-Tag: 050~196 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9721f20d81639002272c78cae90181045e33ec0;p=thirdparty%2Fdracut.git 95fcoe: load 'libfcoe' module as a fallback 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 --- diff --git a/modules.d/95fcoe/parse-fcoe.sh b/modules.d/95fcoe/parse-fcoe.sh index c05adb60f..8bb55c6e6 100755 --- a/modules.d/95fcoe/parse-fcoe.sh +++ b/modules.d/95fcoe/parse-fcoe.sh @@ -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