From patchwork Mon Mar 17 21:10:11 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randolph Sapp X-Patchwork-Id: 59303 X-Patchwork-Delegate: reatmon@ti.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id BCECAC28B28 for ; Mon, 17 Mar 2025 21:10:25 +0000 (UTC) Received: from fllvem-ot04.ext.ti.com (fllvem-ot04.ext.ti.com [198.47.19.246]) by mx.groups.io with SMTP id smtpd.web11.2512.1742245822860162506 for ; Mon, 17 Mar 2025 14:10:23 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=AbXNHNXE; spf=pass (domain: ti.com, ip: 198.47.19.246, mailfrom: rs@ti.com) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllvem-ot04.ext.ti.com (8.15.2/8.15.2) with ESMTPS id 52HLALEh2880566 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 17 Mar 2025 16:10:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1742245821; bh=hMRTIqcs1Vov9602ZHW/5AqsFLIZN0vShgi5r+1OLVM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=AbXNHNXEq1WV9QDMTc/qXtQTqhV7chBrXvZCXO4N2d5MDK+s7K680nvatD1bBMEsm mksB48nNLPiKBXKj2wp47vo94FjONbngjh8aaUffYuCAY51p6Yn3V2zcnK9+p5ooMR pGxm9TqMyyqUJexGw3lWlY6NCP2yODHq4UuK1xmw= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 52HLAKP7046608 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 17 Mar 2025 16:10:21 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 17 Mar 2025 16:10:20 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 17 Mar 2025 16:10:20 -0500 Received: from rs-desk.dhcp.ti.com (rs-desk.dhcp.ti.com [128.247.81.144]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 52HLAKcU071998; Mon, 17 Mar 2025 16:10:20 -0500 From: To: , CC: , , , Subject: [meta-arago][master][PATCH 2/2] systemd: remove sync-clocks service Date: Mon, 17 Mar 2025 16:10:11 -0500 Message-ID: <20250317211015.4052273-3-rs@ti.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250317211015.4052273-1-rs@ti.com> References: <20250317211015.4052273-1-rs@ti.com> MIME-Version: 1.0 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 17 Mar 2025 21:10:25 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/16079 From: Randolph Sapp 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 --- .../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 --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 424f39da..bb57d094 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 ${UNPACKDIR}/30-wlan.network ${D}${sysconfdir}/systemd/network/ install -m 0644 ${UNPACKDIR}/60-usb.network ${D}${sysconfdir}/systemd/network/ - install -d ${D}${sysconfdir}/systemd/system/sysinit.target.wants - install -m 0644 ${UNPACKDIR}/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