summaryrefslogtreecommitdiffstats
path: root/modules.d/95iscsi
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 14:01:36 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 14:01:36 +0000
commit70de5d4041249c1a0f597714398cc245f59495c6 (patch)
treeff491e31b95b662ca6c481ac49d1ca8a94c0226b /modules.d/95iscsi
parentAdding debian version 060+5-8. (diff)
downloaddracut-70de5d4041249c1a0f597714398cc245f59495c6.tar.xz
dracut-70de5d4041249c1a0f597714398cc245f59495c6.zip
Merging upstream version 102.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'modules.d/95iscsi')
-rwxr-xr-xmodules.d/95iscsi/module-setup.sh9
-rwxr-xr-xmodules.d/95iscsi/parse-iscsiroot.sh6
2 files changed, 7 insertions, 8 deletions
diff --git a/modules.d/95iscsi/module-setup.sh b/modules.d/95iscsi/module-setup.sh
index 2bea2fc..5eaab4e 100755
--- a/modules.d/95iscsi/module-setup.sh
+++ b/modules.d/95iscsi/module-setup.sh
@@ -198,14 +198,9 @@ install() {
"$systemdsystemunitdir"/sockets.target.wants/iscsid.socket \
"$systemdsystemunitdir"/sockets.target.wants/iscsiuio.socket
+ inst_simple /etc/iscsi/iscsid.conf
if [[ $hostonly ]]; then
- local -a _filenames
-
- inst_dir /etc/iscsi
- mapfile -t -d '' _filenames < <(find /etc/iscsi -type f -print0)
- inst_multiple "${_filenames[@]}"
- else
- inst_simple /etc/iscsi/iscsid.conf
+ inst_simple /etc/iscsi/initiatorname.iscsi
fi
# Detect iBFT and perform mandatory steps
diff --git a/modules.d/95iscsi/parse-iscsiroot.sh b/modules.d/95iscsi/parse-iscsiroot.sh
index 7574711..99f25a6 100755
--- a/modules.d/95iscsi/parse-iscsiroot.sh
+++ b/modules.d/95iscsi/parse-iscsiroot.sh
@@ -95,7 +95,11 @@ if ! [ -e /sys/module/iscsi_tcp ]; then
modprobe -b -q iscsi_tcp || die "iscsiroot requested but kernel/initrd does not support iscsi"
fi
-modprobe --all -b -q qla4xxx cxgb3i cxgb4i bnx2i be2iscsi
+modprobe -b -q qla4xxx
+modprobe -b -q cxgb3i
+modprobe -b -q cxgb4i
+modprobe -b -q bnx2i
+modprobe -b -q be2iscsi
if [ -n "$netroot" ] && [ "$root" != "/dev/root" ] && [ "$root" != "dhcp" ]; then
if ! getargbool 1 rd.neednet > /dev/null || ! getarg "ip="; then