]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
iscsi/iscsiroot.sh: use all_ifaces_setup()
authorHarald Hoyer <harald@redhat.com>
Thu, 10 Sep 2015 11:21:53 +0000 (13:21 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 11 Nov 2015 15:44:20 +0000 (16:44 +0100)
we want the route and gateway setup

(cherry picked from commit 7cddfbbadbc40a4b6d331be25a3c38ad3a52239b)

modules.d/95iscsi/iscsiroot.sh

index e730cb0c488eeb7d5f004179ce71c043790cb6b9..b14a71b9ec7ddf7464e2223b94ce330f195362dd 100755 (executable)
@@ -106,7 +106,7 @@ handle_netroot()
     parse_iscsi_root "$1" || return 1
 
     # Bail out early, if there is no route to the destination
-    if is_ip "$iscsi_target_ip" && [ "$netif" != "timeout" ] && ! all_ifaces_up && getargbool 1 rd.iscsi.testroute; then
+    if is_ip "$iscsi_target_ip" && [ "$netif" != "timeout" ] && ! all_ifaces_setup && getargbool 1 rd.iscsi.testroute; then
         ip route get "$iscsi_target_ip" >/dev/null 2>&1 || return 0
     fi
 
@@ -225,10 +225,10 @@ handle_netroot()
 ret=0
 
 if [ "$netif" != "timeout" ] && getargbool 1 rd.iscsi.waitnet; then
-    all_ifaces_up || exit 0
+    all_ifaces_setup || exit 0
 fi
 
-if [ "$netif" = "timeout" ] && all_ifaces_up; then
+if [ "$netif" = "timeout" ] && all_ifaces_setup; then
     # s.th. went wrong and the timeout script hits
     # restart
     systemctl restart iscsid