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

Merge pull request #1640 from zet809/fix_issue_1638

Fix issue 1638: Genesis not wait long enough time to have NICs get IP…
This commit is contained in:
Mark Gurevich
2016-08-05 08:45:03 -04:00
committed by GitHub

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 &