]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network: move "ip=ibft" handling to network module
authorHarald Hoyer <harald@redhat.com>
Thu, 3 Sep 2015 10:41:44 +0000 (12:41 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 11 Nov 2015 15:38:49 +0000 (16:38 +0100)
(cherry picked from commit b334c83e4abdc1dd87276fa7de4617cd349a5a4f)

modules.d/40network/parse-ibft.sh
modules.d/90kernel-network-modules/module-setup.sh
modules.d/95iscsi/parse-iscsiroot.sh

index 144e2057f4781b67e9469c2ecfd006852fe8df77..8895b04e77637aebb4c3b6e639a399f5e75f4853 100755 (executable)
@@ -4,5 +4,7 @@ command -v getarg >/dev/null          || . /lib/dracut-lib.sh
 command -v ibft_to_cmdline >/dev/null || . /lib/net-lib.sh
 
 if getargbool 0 rd.iscsi.ibft -d "ip=ibft"; then
+    modprobe -b -q iscsi_boot_sysfs 2>/dev/null
+    modprobe -b -q iscsi_ibft
     ibft_to_cmdline
 fi
index b956ebe4bba8c92ae23d5c88bcca239ccb973238..18d7d966c25b39ad167bbb1fd977cf3ce1c0ca83 100755 (executable)
@@ -62,6 +62,7 @@ installkernel() {
         =drivers/net/team \
         =drivers/net/ethernet \
         ecb arc4 bridge stp llc ipv6 bonding 8021q af_packet virtio_net
+    hostonly="" instmods iscsi_ibft crc32c iscsi_boot_sysfs
 }
 
 # called by dracut
index 81be6a9d4967b62d7bc703df85a4418dc4a53d2d..63a822f54767f97dc9e7c1b28d6ab92ba17bdd9a 100755 (executable)
@@ -69,7 +69,7 @@ if [ -n "$iscsiroot" ] ; then
 fi
 
 # iscsi_firmware does not need argument checking
-if [ -n "$iscsi_firmware" ] || getargbool 0 rd.iscsi.ibft -d "ip=ibft"; then
+if [ -n "$iscsi_firmware" ]; then
     if [ "$root" != "dhcp" ] && [ "$netroot" != "dhcp" ]; then
         [ -z "$netroot" ] && netroot=iscsi:
     fi