Blame SOURCES/0336-network-move-ip-ibft-handling-to-network-module.patch

18971c
From b334c83e4abdc1dd87276fa7de4617cd349a5a4f Mon Sep 17 00:00:00 2001
18971c
From: Harald Hoyer <harald@redhat.com>
18971c
Date: Thu, 3 Sep 2015 12:41:44 +0200
18971c
Subject: [PATCH] network: move "ip=ibft" handling to network module
18971c
18971c
---
18971c
 modules.d/40network/module-setup.sh  | 1 +
18971c
 modules.d/40network/parse-ibft.sh    | 2 ++
18971c
 modules.d/95iscsi/parse-iscsiroot.sh | 2 +-
18971c
 3 files changed, 4 insertions(+), 1 deletion(-)
18971c
18971c
diff --git a/modules.d/40network/module-setup.sh b/modules.d/40network/module-setup.sh
18971c
index 3134b5ff..6cbbe8f7 100755
18971c
--- a/modules.d/40network/module-setup.sh
18971c
+++ b/modules.d/40network/module-setup.sh
18971c
@@ -64,6 +64,7 @@ installkernel() {
18971c
         =drivers/net/team \
18971c
         =drivers/net/ethernet \
18971c
         ecb arc4 bridge stp llc ipv6 bonding 8021q af_packet virtio_net
18971c
+    hostonly="" instmods iscsi_ibft crc32c iscsi_boot_sysfs
18971c
 }
18971c
 
18971c
 install() {
18971c
diff --git a/modules.d/40network/parse-ibft.sh b/modules.d/40network/parse-ibft.sh
18971c
index 643313dc..6f7f4e95 100755
18971c
--- a/modules.d/40network/parse-ibft.sh
18971c
+++ b/modules.d/40network/parse-ibft.sh
18971c
@@ -6,5 +6,7 @@ command -v getarg >/dev/null          || . /lib/dracut-lib.sh
18971c
 command -v ibft_to_cmdline >/dev/null || . /lib/net-lib.sh
18971c
 
18971c
 if getargbool 0 rd.iscsi.ibft -d "ip=ibft"; then
18971c
+    modprobe -b -q iscsi_boot_sysfs 2>/dev/null
18971c
+    modprobe -b -q iscsi_ibft
18971c
     ibft_to_cmdline
18971c
 fi
18971c
diff --git a/modules.d/95iscsi/parse-iscsiroot.sh b/modules.d/95iscsi/parse-iscsiroot.sh
18971c
index 6aa14f5b..9546f126 100755
18971c
--- a/modules.d/95iscsi/parse-iscsiroot.sh
18971c
+++ b/modules.d/95iscsi/parse-iscsiroot.sh
18971c
@@ -71,7 +71,7 @@ if [ -n "$iscsiroot" ] ; then
18971c
 fi
18971c
 
18971c
 # iscsi_firmware does not need argument checking
18971c
-if [ -n "$iscsi_firmware" ] || getargbool 0 rd.iscsi.ibft -d "ip=ibft"; then
18971c
+if [ -n "$iscsi_firmware" ]; then
18971c
     if [ "$root" != "dhcp" ] && [ "$netroot" != "dhcp" ]; then
18971c
         [ -z "$netroot" ] && netroot=iscsi:
18971c
     fi