99base/dracut-lib.sh: wait_for_if_up() extend wait time
authorHarald Hoyer <harald@redhat.com>
Tue, 15 Nov 2011 08:43:16 +0000 (09:43 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 15 Nov 2011 08:47:29 +0000 (09:47 +0100)
Some NICs take longer than 2 seconds to ifup. Wait a little bit longer
now (20s).

modules.d/99base/dracut-lib.sh

index cd10f12..3a31dc4 100755 (executable)
@@ -382,7 +382,7 @@ ismounted() {
 
 wait_for_if_up() {
     local cnt=0
-    while [ $cnt -lt 20 ]; do
+    while [ $cnt -lt 200 ]; do
         li=$(ip link show $1)
         [ -z "${li##*state UP*}" ] && return 0
         sleep 0.1