2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 11:42:05 +00:00

Use the -b option to force the time change

This commit is contained in:
Victor Hu 2016-12-13 13:42:07 -05:00
parent 23179aeaa9
commit 482f6b7fc2

View File

@ -263,7 +263,7 @@ logger -s -t $log_label -p local4.info "Acquired IPv4 address on $bootnic"
ip addr show dev $bootnic|grep -v 'scope link'|grep -v 'dynamic'|grep -v inet6|grep inet|awk '{print $2}'
logger -s -t $log_label -p local4.info "Attempting to sync the date with $XCATMASTER..."
ntpdate $XCATMASTER
ntpdate -b $XCATMASTER
if [ -e "/dev/rtc" ]; then
logger -s -t $log_label -p local4.info "Attempting to sync hardware clock..."