Blame 0143-iscsi-iscsiroot.sh-use-all_ifaces_setup.patch

Harald Hoyer bb31e7
From df087c45d820f22e9bf772fa0009d68e647c0af7 Mon Sep 17 00:00:00 2001
Harald Hoyer bb31e7
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer bb31e7
Date: Thu, 10 Sep 2015 13:21:53 +0200
Harald Hoyer bb31e7
Subject: [PATCH] iscsi/iscsiroot.sh: use all_ifaces_setup()
Harald Hoyer bb31e7
Harald Hoyer bb31e7
we want the route and gateway setup
Harald Hoyer bb31e7
Harald Hoyer bb31e7
(cherry picked from commit 7cddfbbadbc40a4b6d331be25a3c38ad3a52239b)
Harald Hoyer bb31e7
---
Harald Hoyer bb31e7
 modules.d/95iscsi/iscsiroot.sh | 6 +++---
Harald Hoyer bb31e7
 1 file changed, 3 insertions(+), 3 deletions(-)
Harald Hoyer bb31e7
Harald Hoyer bb31e7
diff --git a/modules.d/95iscsi/iscsiroot.sh b/modules.d/95iscsi/iscsiroot.sh
Harald Hoyer bb31e7
index e730cb0..b14a71b 100755
Harald Hoyer bb31e7
--- a/modules.d/95iscsi/iscsiroot.sh
Harald Hoyer bb31e7
+++ b/modules.d/95iscsi/iscsiroot.sh
Harald Hoyer bb31e7
@@ -106,7 +106,7 @@ handle_netroot()
Harald Hoyer bb31e7
     parse_iscsi_root "$1" || return 1
Harald Hoyer bb31e7
 
Harald Hoyer bb31e7
     # Bail out early, if there is no route to the destination
Harald Hoyer bb31e7
-    if is_ip "$iscsi_target_ip" && [ "$netif" != "timeout" ] && ! all_ifaces_up && getargbool 1 rd.iscsi.testroute; then
Harald Hoyer bb31e7
+    if is_ip "$iscsi_target_ip" && [ "$netif" != "timeout" ] && ! all_ifaces_setup && getargbool 1 rd.iscsi.testroute; then
Harald Hoyer bb31e7
         ip route get "$iscsi_target_ip" >/dev/null 2>&1 || return 0
Harald Hoyer bb31e7
     fi
Harald Hoyer bb31e7
 
Harald Hoyer bb31e7
@@ -225,10 +225,10 @@ handle_netroot()
Harald Hoyer bb31e7
 ret=0
Harald Hoyer bb31e7
 
Harald Hoyer bb31e7
 if [ "$netif" != "timeout" ] && getargbool 1 rd.iscsi.waitnet; then
Harald Hoyer bb31e7
-    all_ifaces_up || exit 0
Harald Hoyer bb31e7
+    all_ifaces_setup || exit 0
Harald Hoyer bb31e7
 fi
Harald Hoyer bb31e7
 
Harald Hoyer bb31e7
-if [ "$netif" = "timeout" ] && all_ifaces_up; then
Harald Hoyer bb31e7
+if [ "$netif" = "timeout" ] && all_ifaces_setup; then
Harald Hoyer bb31e7
     # s.th. went wrong and the timeout script hits
Harald Hoyer bb31e7
     # restart
Harald Hoyer bb31e7
     systemctl restart iscsid