summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2023-01-19 12:31:37 +0100
committerSimon Rettberg2023-01-19 12:31:37 +0100
commitf69bb0f423ebea4b707df874eb0a695c75ea4477 (patch)
treeeff890b0b9658f3b511cf632ddc5da302a9214f0
parent[slx-clock] ntpdate: -p is no longer supported (diff)
downloadsystemd-init-f69bb0f423ebea4b707df874eb0a695c75ea4477.tar.gz
systemd-init-f69bb0f423ebea4b707df874eb0a695c75ea4477.tar.xz
systemd-init-f69bb0f423ebea4b707df874eb0a695c75ea4477.zip
[slx-clock] Add ntpdig
-rwxr-xr-xmodules.d/slx-clock/module-setup.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules.d/slx-clock/module-setup.sh b/modules.d/slx-clock/module-setup.sh
index 8fdbbef6..8dbce9f1 100755
--- a/modules.d/slx-clock/module-setup.sh
+++ b/modules.d/slx-clock/module-setup.sh
@@ -15,6 +15,8 @@ install() {
# wait til we have the openslx config for ntp servers
# which happens in pre-mount/10
inst_multiple ntpdate /etc/services /usr/share/zoneinfo/Europe/Berlin
+ # Needed on newer systems, where ntpdate is just a wrapper around it
+ inst_multiple -o ntpdig
inst /usr/share/zoneinfo/Europe/Berlin /etc/localtime
inst_hook pre-mount 15 "$moddir/scripts/ntp-sync.sh"
inst_hook pre-pivot 15 "$moddir/scripts/configure-timesyncd.sh"