From 9a157b5569151616771fc1a4cb576e6e1ce6eaf4 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 17 May 2013 08:46:30 +0200 Subject: use public ntp server --- archauto.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/archauto.sh b/archauto.sh index 5971050..643edc4 100755 --- a/archauto.sh +++ b/archauto.sh @@ -8,7 +8,6 @@ LABEL_BOOT=BOOT LABEL_SWAP=SWAP LABEL_ROOT=ROOT MOUNT_PATH=/mnt -NTP_SERVER=192.168.1.1 GIT_REPO=git://andreasbaumann.dyndns.org/cfenginetests.git echo "Installing minimalistic base system.." @@ -72,12 +71,9 @@ arch-chroot ${MOUNT_PATH} sh -c "echo 'root:xx' | chpasswd" sed -i 's/^SigLevel.*/SigLevel = Never/g' ${MOUNT_PATH}/etc/pacman.conf # synchronized time is a requirement, install and configure ntp +# we use a standard NTP server, later we can change that via cfengine arch-chroot ${MOUNT_PATH} pacman --noconfirm -S ntp - -arch-chroot ${MOUNT_PATH} ntpdate ${NTP_SERVER} - -sed -i '/^server .*.pool.ntp.org/d' ${MOUNT_PATH}/etc/ntp.conf -echo "server ${NTP_SERVER}" >> ${MOUNT_PATH}/etc/ntp.conf +arch-chroot ${MOUNT_PATH} ntpdate 0.pool.ntp.org arch-chroot ${MOUNT_PATH} systemctl enable ntpd.service # monitord needs netstat -- cgit v1.2.3-54-g00ecf