]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Defer modprobe of HW modules, until udev is running
authorHarald Hoyer <harald@redhat.com>
Fri, 24 Apr 2015 09:54:07 +0000 (11:54 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 29 Jun 2016 09:50:13 +0000 (11:50 +0200)
Also honor blacklisting

(cherry picked from commit 437dad70e9525a21da873652080bbd62a9d8b96a)

modules.d/95fcoe/parse-fcoe.sh
modules.d/95iscsi/parse-iscsiroot.sh

index 745a78c6c5ceb16e3b91fe948c0737526bccba25..e8a77e082078c5fe5c58671e0ea15e369b0ae85d 100755 (executable)
 
 
 # BRCM: Later, should check whether bnx2x is loaded first before loading bnx2fc so do not load bnx2fc when there are no Broadcom adapters
-[ -e /sys/bus/fcoe/ctlr_create ] || modprobe -a fcoe || die "FCoE requested but kernel/initrd does not support FCoE"
+[ -e /sys/bus/fcoe/ctlr_create ] || modprobe -b -a fcoe || die "FCoE requested but kernel/initrd does not support FCoE"
 
-modprobe bnx2fc >/dev/null 2>&1
-udevadm settle --timeout=30
+initqueue --onetime modprobe -b -q bnx2fc
 
 # FCoE actually supported?
 [ -e /sys/bus/fcoe/ctlr_create ] || modprobe fcoe || die "FCoE requested but kernel/initrd does not support FCoE"
index 3d74ff2e3e7209345c1fec308bb437ba50286e07..80201d4e9ec4cbee2c00c1f710626eb5ddce187f 100755 (executable)
@@ -89,16 +89,11 @@ if [ -z "$netroot" ] || ! [ "${netroot%%:*}" = "iscsi" ]; then
 fi
 
 initqueue --unique --onetime --timeout /sbin/iscsiroot timeout "$netroot" "$NEWROOT"
-
-modprobe -b -q qla4xxx
-modprobe -b -q cxgb3i
-modprobe -b -q cxgb4i
-modprobe -b -q bnx2i
-modprobe -b -q be2iscsi
+initqueue --onetime modprobe --all -b -q qla4xxx cxgb3i cxgb4i bnx2i be2iscsi
 
 # ISCSI actually supported?
 if ! [ -e /sys/module/iscsi_tcp ]; then
-    modprobe -q iscsi_tcp || die "iscsiroot requested but kernel/initrd does not support iscsi"
+    modprobe -b -q iscsi_tcp || die "iscsiroot requested but kernel/initrd does not support iscsi"
 fi
 
 if [ -n "$netroot" ] && [ "$root" != "/dev/root" ] && [ "$root" != "dhcp" ]; then