diff mbox series

[meta-arago,scarthgap,2/2] systemd: remove sync-clocks service

Message ID 20250317210038.3983636-3-rs@ti.com
State Accepted
Delegated to: Ryan Eatmon
Headers show
Series Time sync headaches | expand

Commit Message

Randolph Sapp March 17, 2025, 9 p.m. UTC
From: Randolph Sapp <rs@ti.com>

This is already handled by the kernel with RTC_SYSTOHC and any of the
userspace time synchronization daemons we have (systemd-timesyncd).

This is handled only when an NTP sync occurs normally, so that the
system RTC is updated to the proper time outright and doesn't create
potential issues with the time sync daemon drift tracking between boots.

Signed-off-by: Randolph Sapp <rs@ti.com>
---
 .../systemd/systemd/sync-clocks.service            | 14 --------------
 .../recipes-core/systemd/systemd_%.bbappend        |  5 -----
 2 files changed, 19 deletions(-)
 delete mode 100644 meta-arago-distro/recipes-core/systemd/systemd/sync-clocks.service
diff mbox series

Patch

diff --git a/meta-arago-distro/recipes-core/systemd/systemd/sync-clocks.service b/meta-arago-distro/recipes-core/systemd/systemd/sync-clocks.service
deleted file mode 100644
index b11d05ad..00000000
--- a/meta-arago-distro/recipes-core/systemd/systemd/sync-clocks.service
+++ /dev/null
@@ -1,14 +0,0 @@ 
-[Unit]
-Description=Synchronize System and HW clocks
-DefaultDependencies=no
-Wants=sysinit.target
-Conflicts=shutdown.target
-After=getty.target
-
-[Service]
-Type=oneshot
-ExecStart=/sbin/hwclock --systohc
-StandardOutput=syslog
-
-[Install]
-WantedBy=multi-user.target
diff --git a/meta-arago-distro/recipes-core/systemd/systemd_%.bbappend b/meta-arago-distro/recipes-core/systemd/systemd_%.bbappend
index 428a16f7..4e41d90d 100644
--- a/meta-arago-distro/recipes-core/systemd/systemd_%.bbappend
+++ b/meta-arago-distro/recipes-core/systemd/systemd_%.bbappend
@@ -10,7 +10,6 @@  SRC_URI:append = " \
     file://15-eth.network \
     file://30-wlan.network \
     file://60-usb.network \
-    file://sync-clocks.service \
     file://timesyncd.conf \
     file://37-can-j7.rules \
     file://37-can-am62.rules \
@@ -32,10 +31,6 @@  do_install:append() {
     install -m 0644 ${WORKDIR}/30-wlan.network ${D}${sysconfdir}/systemd/network/
     install -m 0644 ${WORKDIR}/60-usb.network ${D}${sysconfdir}/systemd/network/
 
-    install -d ${D}${sysconfdir}/systemd/system/sysinit.target.wants
-    install -m 0644 ${WORKDIR}/sync-clocks.service ${D}${sysconfdir}/systemd/system/
-    ln -sf ../sync-clocks.service ${D}${sysconfdir}/systemd/system/sysinit.target.wants/sync-clocks.service
-
     # Allow automount from udev
     install -m 0644 ${D}${systemd_system_unitdir}/systemd-udevd.service ${D}${sysconfdir}/systemd/system/
     sed -i 's/MountFlags=slave/MountFlags=shared/g' ${D}${sysconfdir}/systemd/system/systemd-udevd.service