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