From f1015d6b9c5ef3a88900c08d71334c51a414191b Mon Sep 17 00:00:00 2001 From: Naoto Yamaguchi Date: Tue, 12 Nov 2024 01:02:34 +0900 Subject: Enable systemd-timesyncd in case of using systemd-networkd At SPEC-737, systemd-timesyncd was disabled every case. It causes NTP capability lost in case of using systemd-networkd. This patch enable systemd-timesyncd in guest environment. Bug-AGL: SPEC-5274 Change-Id: I2c4f48bd67aa800c87ec37e2f494538b9f5a23c4 Signed-off-by: Naoto Yamaguchi --- .../systemd-timesyncd-guest/timesyncd-run-guest.conf | 2 ++ .../recipes-core/systemd/systemd-timesyncd-guest_1.0.bb | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 meta-agl-ic-container/recipes-core/systemd/systemd-timesyncd-guest/timesyncd-run-guest.conf create mode 100644 meta-agl-ic-container/recipes-core/systemd/systemd-timesyncd-guest_1.0.bb (limited to 'meta-agl-ic-container/recipes-core/systemd') diff --git a/meta-agl-ic-container/recipes-core/systemd/systemd-timesyncd-guest/timesyncd-run-guest.conf b/meta-agl-ic-container/recipes-core/systemd/systemd-timesyncd-guest/timesyncd-run-guest.conf new file mode 100644 index 00000000..9a5cd624 --- /dev/null +++ b/meta-agl-ic-container/recipes-core/systemd/systemd-timesyncd-guest/timesyncd-run-guest.conf @@ -0,0 +1,2 @@ +[Unit] +ConditionVirtualization= diff --git a/meta-agl-ic-container/recipes-core/systemd/systemd-timesyncd-guest_1.0.bb b/meta-agl-ic-container/recipes-core/systemd/systemd-timesyncd-guest_1.0.bb new file mode 100644 index 00000000..e8ec6500 --- /dev/null +++ b/meta-agl-ic-container/recipes-core/systemd/systemd-timesyncd-guest_1.0.bb @@ -0,0 +1,17 @@ +SUMMARY = "Container guest configuration for systemd-timesyncd." +DESCRIPTION = "Container guest configuration for systemd-timesyncd. \ + It enables systemd-timesyncd in container guest." +LICENSE = "MIT" +SRC_URI = " \ + file://timesyncd-run-guest.conf \ + " + +do_install() { + install -D -m644 ${WORKDIR}/timesyncd-run-guest.conf ${D}/${systemd_system_unitdir}/systemd-timesyncd.service.d/timesyncd-run-guest.conf +} + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +FILES:${PN} = "\ + ${systemd_system_unitdir}/systemd-timesyncd.service.d/* \ +" -- cgit 1.2.3-korg