]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
iscsi: start iscsid even w/o systemd
authorLubomir Rintel <lkundrak@v3.sk>
Thu, 30 Aug 2018 16:41:37 +0000 (18:41 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 21 Sep 2018 09:32:01 +0000 (11:32 +0200)
modules.d/95iscsi/iscsiroot.sh

index 76c8b3fead4ce157df4cb8f8bbf1b41043037417..4efc1d12970af04c8674f1caa339210749f675f2 100755 (executable)
@@ -194,6 +194,12 @@ handle_netroot()
             sleep 1
         fi
     fi
+
+   if [ -z "$DRACUT_SYSTEMD" ]; then
+       iscsid
+       sleep 2
+   fi
+
 # FIXME $iscsi_protocol??
 
     if [ "$root" = "dhcp" ] || [ "$netroot" = "dhcp" ]; then