Blame SOURCES/0135-network-net-lib.sh-wait_for_ipv6_auto-also-wait-for-.patch

a56a5e
From 61fe0031683c8e1c36ca6ca3022ef6243bfae268 Mon Sep 17 00:00:00 2001
966cef
From: Harald Hoyer <harald@redhat.com>
966cef
Date: Tue, 25 Feb 2014 13:31:29 +0100
966cef
Subject: [PATCH] network/net-lib.sh:wait_for_ipv6_auto() also wait for the
966cef
 tentative flag
966cef
966cef
Wait until the tentative flag is cleared.
966cef
966cef
https://bugzilla.redhat.com/show_bug.cgi?id=1069263
966cef
---
966cef
 modules.d/40network/net-lib.sh | 4 +++-
966cef
 1 file changed, 3 insertions(+), 1 deletion(-)
966cef
966cef
diff --git a/modules.d/40network/net-lib.sh b/modules.d/40network/net-lib.sh
1755ca
index 8948a476..4e1b0192 100755
966cef
--- a/modules.d/40network/net-lib.sh
966cef
+++ b/modules.d/40network/net-lib.sh
966cef
@@ -456,7 +456,9 @@ wait_for_ipv6_auto() {
966cef
     local li
966cef
     while [ $cnt -lt 400 ]; do
966cef
         li=$(ip -6 addr show dev $1)
966cef
-        strstr "$li" "dynamic" && return 0
966cef
+        if ! strstr "$li" "tentative"; then
966cef
+            strstr "$li" "dynamic" && return 0
966cef
+        fi
966cef
         sleep 0.1
966cef
         cnt=$(($cnt+1))
966cef
     done