|
Harald Hoyer |
9d5d75 |
From ab94a204e0cb22bcaa2b2863dee9ffb9f22e91c5 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
9d5d75 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
9d5d75 |
Date: Tue, 14 Aug 2018 11:03:11 +0200
|
|
Harald Hoyer |
9d5d75 |
Subject: [PATCH] load modules earlier for iscsi via dhcp root-path
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
---
|
|
Harald Hoyer |
9d5d75 |
modules.d/95iscsi/parse-iscsiroot.sh | 15 +++++++--------
|
|
Harald Hoyer |
9d5d75 |
1 file changed, 7 insertions(+), 8 deletions(-)
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
diff --git a/modules.d/95iscsi/parse-iscsiroot.sh b/modules.d/95iscsi/parse-iscsiroot.sh
|
|
Harald Hoyer |
9d5d75 |
index f884e684..7a64d888 100755
|
|
Harald Hoyer |
9d5d75 |
--- a/modules.d/95iscsi/parse-iscsiroot.sh
|
|
Harald Hoyer |
9d5d75 |
+++ b/modules.d/95iscsi/parse-iscsiroot.sh
|
|
Harald Hoyer |
9d5d75 |
@@ -90,19 +90,13 @@ if [ -n "$iscsi_firmware" ]; then
|
|
Harald Hoyer |
9d5d75 |
initqueue --unique --onetime --settled /sbin/iscsiroot online "iscsi:" "'$NEWROOT'"
|
|
Harald Hoyer |
9d5d75 |
fi
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
-if [ -z "$netroot" ] || ! [ "${netroot%%:*}" = "iscsi" ]; then
|
|
Harald Hoyer |
9d5d75 |
- return 1
|
|
Harald Hoyer |
9d5d75 |
-fi
|
|
Harald Hoyer |
9d5d75 |
-
|
|
Harald Hoyer |
9d5d75 |
-initqueue --unique --onetime --timeout /sbin/iscsiroot timeout "$netroot" "$NEWROOT"
|
|
Harald Hoyer |
9d5d75 |
-
|
|
Harald Hoyer |
9d5d75 |
-initqueue --onetime modprobe --all -b -q qla4xxx cxgb3i cxgb4i bnx2i be2iscsi qedi
|
|
Harald Hoyer |
9d5d75 |
-
|
|
Harald Hoyer |
9d5d75 |
# ISCSI actually supported?
|
|
Harald Hoyer |
9d5d75 |
if ! [ -e /sys/module/iscsi_tcp ]; then
|
|
Harald Hoyer |
9d5d75 |
modprobe -b -q iscsi_tcp || die "iscsiroot requested but kernel/initrd does not support iscsi"
|
|
Harald Hoyer |
9d5d75 |
fi
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
+modprobe --all -b -q qla4xxx cxgb3i cxgb4i bnx2i be2iscsi
|
|
Harald Hoyer |
9d5d75 |
+
|
|
Harald Hoyer |
9d5d75 |
if [ -n "$netroot" ] && [ "$root" != "/dev/root" ] && [ "$root" != "dhcp" ]; then
|
|
Harald Hoyer |
9d5d75 |
if ! getargbool 1 rd.neednet >/dev/null || ! getarg "ip="; then
|
|
Harald Hoyer |
9d5d75 |
initqueue --unique --onetime --settled /sbin/iscsiroot dummy "'$netroot'" "'$NEWROOT'"
|
|
Harald Hoyer |
9d5d75 |
@@ -141,6 +135,11 @@ if [ -z $iscsi_initiator ] && [ -f /sys/firmware/ibft/initiator/initiator-name ]
|
|
Harald Hoyer |
9d5d75 |
fi
|
|
Harald Hoyer |
9d5d75 |
fi
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
+if [ -z "$netroot" ] || ! [ "${netroot%%:*}" = "iscsi" ]; then
|
|
Harald Hoyer |
9d5d75 |
+ return 1
|
|
Harald Hoyer |
9d5d75 |
+fi
|
|
Harald Hoyer |
9d5d75 |
+
|
|
Harald Hoyer |
9d5d75 |
+initqueue --unique --onetime --timeout /sbin/iscsiroot timeout "$netroot" "$NEWROOT"
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
for nroot in $(getargs netroot); do
|
|
Harald Hoyer |
9d5d75 |
[ "${nroot%%:*}" = "iscsi" ] || continue
|
|
Harald Hoyer |
9d5d75 |
|