Blame 0140-network-move-ip-ibft-handling-to-network-module.patch

Harald Hoyer bb31e7
From 73833796b4592b06777fa1991163b74e9bb1e477 Mon Sep 17 00:00:00 2001
Harald Hoyer bb31e7
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer bb31e7
Date: Thu, 3 Sep 2015 12:41:44 +0200
Harald Hoyer bb31e7
Subject: [PATCH] network: move "ip=ibft" handling to network module
Harald Hoyer bb31e7
Harald Hoyer bb31e7
(cherry picked from commit b334c83e4abdc1dd87276fa7de4617cd349a5a4f)
Harald Hoyer bb31e7
---
Harald Hoyer bb31e7
 modules.d/40network/parse-ibft.sh                  | 2 ++
Harald Hoyer bb31e7
 modules.d/90kernel-network-modules/module-setup.sh | 1 +
Harald Hoyer bb31e7
 modules.d/95iscsi/parse-iscsiroot.sh               | 2 +-
Harald Hoyer bb31e7
 3 files changed, 4 insertions(+), 1 deletion(-)
Harald Hoyer bb31e7
Harald Hoyer bb31e7
diff --git a/modules.d/40network/parse-ibft.sh b/modules.d/40network/parse-ibft.sh
Harald Hoyer bb31e7
index 144e205..8895b04 100755
Harald Hoyer bb31e7
--- a/modules.d/40network/parse-ibft.sh
Harald Hoyer bb31e7
+++ b/modules.d/40network/parse-ibft.sh
Harald Hoyer bb31e7
@@ -4,5 +4,7 @@ command -v getarg >/dev/null          || . /lib/dracut-lib.sh
Harald Hoyer bb31e7
 command -v ibft_to_cmdline >/dev/null || . /lib/net-lib.sh
Harald Hoyer bb31e7
 
Harald Hoyer bb31e7
 if getargbool 0 rd.iscsi.ibft -d "ip=ibft"; then
Harald Hoyer bb31e7
+    modprobe -b -q iscsi_boot_sysfs 2>/dev/null
Harald Hoyer bb31e7
+    modprobe -b -q iscsi_ibft
Harald Hoyer bb31e7
     ibft_to_cmdline
Harald Hoyer bb31e7
 fi
Harald Hoyer bb31e7
diff --git a/modules.d/90kernel-network-modules/module-setup.sh b/modules.d/90kernel-network-modules/module-setup.sh
Harald Hoyer bb31e7
index b956ebe..18d7d96 100755
Harald Hoyer bb31e7
--- a/modules.d/90kernel-network-modules/module-setup.sh
Harald Hoyer bb31e7
+++ b/modules.d/90kernel-network-modules/module-setup.sh
Harald Hoyer bb31e7
@@ -62,6 +62,7 @@ installkernel() {
Harald Hoyer bb31e7
         =drivers/net/team \
Harald Hoyer bb31e7
         =drivers/net/ethernet \
Harald Hoyer bb31e7
         ecb arc4 bridge stp llc ipv6 bonding 8021q af_packet virtio_net
Harald Hoyer bb31e7
+    hostonly="" instmods iscsi_ibft crc32c iscsi_boot_sysfs
Harald Hoyer bb31e7
 }
Harald Hoyer bb31e7
 
Harald Hoyer bb31e7
 # called by dracut
Harald Hoyer bb31e7
diff --git a/modules.d/95iscsi/parse-iscsiroot.sh b/modules.d/95iscsi/parse-iscsiroot.sh
Harald Hoyer bb31e7
index 81be6a9..63a822f 100755
Harald Hoyer bb31e7
--- a/modules.d/95iscsi/parse-iscsiroot.sh
Harald Hoyer bb31e7
+++ b/modules.d/95iscsi/parse-iscsiroot.sh
Harald Hoyer bb31e7
@@ -69,7 +69,7 @@ if [ -n "$iscsiroot" ] ; then
Harald Hoyer bb31e7
 fi
Harald Hoyer bb31e7
 
Harald Hoyer bb31e7
 # iscsi_firmware does not need argument checking
Harald Hoyer bb31e7
-if [ -n "$iscsi_firmware" ] || getargbool 0 rd.iscsi.ibft -d "ip=ibft"; then
Harald Hoyer bb31e7
+if [ -n "$iscsi_firmware" ]; then
Harald Hoyer bb31e7
     if [ "$root" != "dhcp" ] && [ "$netroot" != "dhcp" ]; then
Harald Hoyer bb31e7
         [ -z "$netroot" ] && netroot=iscsi:
Harald Hoyer bb31e7
     fi