diff options
Diffstat (limited to 'archauto.sh')
-rwxr-xr-x | archauto.sh | 8 |
1 files 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 |