2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-19 09:40:21 +00:00

Fix issue 1638: Genesis not wait long enough time to have NICs get IP address

This commit is contained in:
ertaozh
2016-08-05 03:02:21 -04:00
parent c672699571
commit f9d532b009

View File

@@ -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 &