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 &