8267e3ce99
To avoid potential issues due to large time jumps when NTP first syncs the system time at runtime, this update adds ntpd to the installer rootfs and adds a pre-script to the kickstarts to sync the time from the active controller before starting to install the software. This also ensures that any filesystem timestamps will be accurate right from the node installation. Change-Id: I166c52430cec6ba64e5a33ebde64ee65639d623c Signed-off-by: Don Penney <don.penney@windriver.com>
15 lines
215 B
INI
15 lines
215 B
INI
%pre
|
|
|
|
# Setup ntp.conf and sync time
|
|
cat <<EOF >/etc/ntp_kickstart.conf
|
|
server pxecontroller
|
|
EOF
|
|
|
|
/usr/sbin/ntpd -g -q -n -c /etc/ntp_kickstart.conf
|
|
if [ $? -eq 0 ]; then
|
|
/sbin/hwclock --systohc --utc
|
|
fi
|
|
|
|
%end
|
|
|