]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network/net-lib.sh:wait_for_ipv6_auto() also wait for the tentative flag
authorHarald Hoyer <harald@redhat.com>
Tue, 25 Feb 2014 12:31:29 +0000 (13:31 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 26 Feb 2014 14:02:48 +0000 (15:02 +0100)
Wait until the tentative flag is cleared.

https://bugzilla.redhat.com/show_bug.cgi?id=1069263

modules.d/40network/net-lib.sh

index 8948a476f95d9cb5881a7cdb0fae67a8ddb8bfbe..4e1b0192f7874ef93952aab92e7209a1600afc89 100755 (executable)
@@ -456,7 +456,9 @@ wait_for_ipv6_auto() {
     local li
     while [ $cnt -lt 400 ]; do
         li=$(ip -6 addr show dev $1)
-        strstr "$li" "dynamic" && return 0
+        if ! strstr "$li" "tentative"; then
+            strstr "$li" "dynamic" && return 0
+        fi
         sleep 0.1
         cnt=$(($cnt+1))
     done