From: Harald Hoyer Date: Mon, 10 Sep 2012 13:49:37 +0000 (+0200) Subject: iscsi/parse-iscsiroot.sh: delay loading of iscsi modules X-Git-Tag: 024~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dff1671f8f21b88479ad022623ff26e40e958bd6;p=thirdparty%2Fdracut.git iscsi/parse-iscsiroot.sh: delay loading of iscsi modules --- diff --git a/modules.d/95iscsi/parse-iscsiroot.sh b/modules.d/95iscsi/parse-iscsiroot.sh index e7fc224ee..cc59f5aa9 100755 --- a/modules.d/95iscsi/parse-iscsiroot.sh +++ b/modules.d/95iscsi/parse-iscsiroot.sh @@ -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