From f9d532b0094b4cb2349f107425386fdc806e5e8b Mon Sep 17 00:00:00 2001 From: ertaozh Date: Fri, 5 Aug 2016 03:02:21 -0400 Subject: [PATCH] Fix issue 1638: Genesis not wait long enough time to have NICs get IP address --- xCAT-genesis-scripts/bin/doxcat | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xCAT-genesis-scripts/bin/doxcat b/xCAT-genesis-scripts/bin/doxcat index f8fc3ac22..73f16b081 100755 --- a/xCAT-genesis-scripts/bin/doxcat +++ b/xCAT-genesis-scripts/bin/doxcat @@ -217,15 +217,16 @@ else fi fi done - sleep 2 + sleep 3 tries=$(($tries+1)) - if [ $tries -ge 10 ]; then + # Wait for 60 seconds to make sure the STP is done for at least one port + if [ $tries -ge 20 ]; then break fi done if [ -z "$bootnic" ]; then + logger -s -t $log_label -p local4.info "still can not get bootnic, go into /bin/bash" /bin/bash - logger -s -t $log_label -p local4.info "still can not get $bootnic, go into /bin/bash" fi else dhclient -cf /etc/dhclient.conf -pf /var/run/dhclient.$bootnic.pid $bootnic &