Blame SOURCES/0401-Defer-modprobe-of-HW-modules-until-udev-is-running.patch

18971c
From 7335bd1e2358560ac461ef23715a0098f78330fb Mon Sep 17 00:00:00 2001
18971c
From: Harald Hoyer <harald@redhat.com>
18971c
Date: Fri, 24 Apr 2015 11:54:07 +0200
18971c
Subject: [PATCH] Defer modprobe of HW modules, until udev is running
18971c
18971c
Also honor blacklisting
18971c
18971c
(cherry picked from commit 437dad70e9525a21da873652080bbd62a9d8b96a)
18971c
---
18971c
 modules.d/95fcoe/parse-fcoe.sh       | 5 ++---
18971c
 modules.d/95iscsi/parse-iscsiroot.sh | 9 ++-------
18971c
 2 files changed, 4 insertions(+), 10 deletions(-)
18971c
18971c
diff --git a/modules.d/95fcoe/parse-fcoe.sh b/modules.d/95fcoe/parse-fcoe.sh
18971c
index 745a78c6..e8a77e08 100755
18971c
--- a/modules.d/95fcoe/parse-fcoe.sh
18971c
+++ b/modules.d/95fcoe/parse-fcoe.sh
18971c
@@ -22,10 +22,9 @@
18971c
 
18971c
 
18971c
 # BRCM: Later, should check whether bnx2x is loaded first before loading bnx2fc so do not load bnx2fc when there are no Broadcom adapters
18971c
-[ -e /sys/bus/fcoe/ctlr_create ] || modprobe -a fcoe || die "FCoE requested but kernel/initrd does not support FCoE"
18971c
+[ -e /sys/bus/fcoe/ctlr_create ] || modprobe -b -a fcoe || die "FCoE requested but kernel/initrd does not support FCoE"
18971c
 
18971c
-modprobe bnx2fc >/dev/null 2>&1
18971c
-udevadm settle --timeout=30
18971c
+initqueue --onetime modprobe -b -q bnx2fc
18971c
 
18971c
 # FCoE actually supported?
18971c
 [ -e /sys/bus/fcoe/ctlr_create ] || modprobe fcoe || die "FCoE requested but kernel/initrd does not support FCoE"
18971c
diff --git a/modules.d/95iscsi/parse-iscsiroot.sh b/modules.d/95iscsi/parse-iscsiroot.sh
18971c
index 3d74ff2e..80201d4e 100755
18971c
--- a/modules.d/95iscsi/parse-iscsiroot.sh
18971c
+++ b/modules.d/95iscsi/parse-iscsiroot.sh
18971c
@@ -89,16 +89,11 @@ if [ -z "$netroot" ] || ! [ "${netroot%%:*}" = "iscsi" ]; then
18971c
 fi
18971c
 
18971c
 initqueue --unique --onetime --timeout /sbin/iscsiroot timeout "$netroot" "$NEWROOT"
18971c
-
18971c
-modprobe -b -q qla4xxx
18971c
-modprobe -b -q cxgb3i
18971c
-modprobe -b -q cxgb4i
18971c
-modprobe -b -q bnx2i
18971c
-modprobe -b -q be2iscsi
18971c
+initqueue --onetime modprobe --all -b -q qla4xxx cxgb3i cxgb4i bnx2i be2iscsi
18971c
 
18971c
 # ISCSI actually supported?
18971c
 if ! [ -e /sys/module/iscsi_tcp ]; then
18971c
-    modprobe -q iscsi_tcp || die "iscsiroot requested but kernel/initrd does not support iscsi"
18971c
+    modprobe -b -q iscsi_tcp || die "iscsiroot requested but kernel/initrd does not support iscsi"
18971c
 fi
18971c
 
18971c
 if [ -n "$netroot" ] && [ "$root" != "/dev/root" ] && [ "$root" != "dhcp" ]; then