From b67a2a3d5cd8a83a3494b703eaab87e205ed1980 Mon Sep 17 00:00:00 2001 From: Marcel Stangenberger Date: Wed, 30 Jul 2025 16:00:56 +0200 Subject: [PATCH] Added chrony time sync --- post/chrony.conf | 9 +++++++++ post/run.sh | 6 +++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 post/chrony.conf diff --git a/post/chrony.conf b/post/chrony.conf new file mode 100644 index 0000000..659fc42 --- /dev/null +++ b/post/chrony.conf @@ -0,0 +1,9 @@ +pool ntp.time.nl iburst +maxupdateskew 5 +driftfile /var/lib/chrony/drift +ntsdumpdir /var/lib/chrony +leapseclist /usr/share/zoneinfo/leap-seconds.list +makestep 1.0 3 +logdir /var/log/chrony +log measurements statistics tracking +rtcsync diff --git a/post/run.sh b/post/run.sh index 458ece2..4735205 100644 --- a/post/run.sh +++ b/post/run.sh @@ -25,14 +25,18 @@ curl -so /etc/iptables/iptables.rules $REPO/raw/branch/master/post/iptables.rule curl -so /etc/iptables/ip6tables.rules $REPO/raw/branch/master/post/ip6tables.rules echo -e "${GREEN}Install minimal required packages...${NOCOL}" -pacman --noconfirm -S cronie rsync iftop htop bash-completion iotop lsof screen fastfetch neovim man-db inetutils base-devel git networkmanager +pacman --noconfirm -S chrony cronie rsync iftop htop bash-completion iotop lsof screen fastfetch neovim man-db inetutils base-devel git networkmanager ln -s /usr/bin/nvim /usr/bin/vi +echo -e "${GREEN}Setup Chronyd service...${NOCOL}" +curl -so /etc/chrony.conf $REPO/raw/branch/master/post/chrony.conf + echo -e "${GREEN}Activating required services...${NOCOL}" systemctl enable iptables systemctl enable ip6tables systemctl enable NetworkManager systemctl enable cronie +systemctl enable chronyd echo -e "${GREEN}Setup motd default...${NOCOL}" echo "" > /etc/motd