]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
iscsi/parse-iscsiroot.sh: delay loading of iscsi modules
authorHarald Hoyer <harald@redhat.com>
Mon, 10 Sep 2012 13:49:37 +0000 (15:49 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 10 Sep 2012 13:49:37 +0000 (15:49 +0200)
modules.d/95iscsi/parse-iscsiroot.sh

index e7fc224eeaed07fdfe5ed9ed2bf31898e1a514ab..cc59f5aa9fe928d423226189433e0c1967aaa774 100755 (executable)
@@ -53,12 +53,6 @@ if [ -n "$iscsiroot" ] ; then
     [ -z "$netroot" ] || [ "$netroot" = "iscsi" ] && netroot=iscsi:$iscsiroot
 fi
 
-modprobe -q qla4xxx
-modprobe -q cxgb3i
-modprobe -q cxgb4i
-modprobe -q bnx2i
-modprobe -q be2iscsi
-
 # iscsi_firmware does not need argument checking
 if [ -n "$iscsi_firmware" ] ; then
     netroot=${netroot:-iscsi}
@@ -69,6 +63,12 @@ fi
 # If it's not iscsi we don't continue
 [ "${netroot%%:*}" = "iscsi" ] || return
 
+modprobe -q qla4xxx
+modprobe -q cxgb3i
+modprobe -q cxgb4i
+modprobe -q bnx2i
+modprobe -q be2iscsi
+
 if [ -z "$iscsi_firmware" ] ; then
     type parse_iscsi_root >/dev/null 2>&1 || . /lib/net-lib.sh
     parse_iscsi_root "$netroot" || return