From 9cceb8d65595669e7dec43f73955787d03d782fc Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 17 Oct 2023 15:27:37 +0200 Subject: [PATCH] MT#58356 ntp: Use ntpsec.service instead of ntp.service Even though the ntpsec.service contains an Alias for ntp.service, that does not work for us when the service has not yet been installed, so the first run will fail. Use the actual name to avoid this issue. Change-Id: I8f0ee3b38390a7e58c3bbee65fd96bfd4b717dfa --- templates/scripts/includes/deployment.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/scripts/includes/deployment.sh b/templates/scripts/includes/deployment.sh index d3c15de..5f35742 100755 --- a/templates/scripts/includes/deployment.sh +++ b/templates/scripts/includes/deployment.sh @@ -742,9 +742,9 @@ enable_ntp() { echo "Enabling NTP synchronization" timedatectl set-ntp true || true - elif systemctl cat ntp &>/dev/null ; then - echo "Ensuring ntp service is running" - systemctl start ntp + elif systemctl cat ntpsec &>/dev/null ; then + echo "Ensuring ntpsec service is running" + systemctl start ntpsec echo "Enabling NTP synchronization" timedatectl set-ntp true || true