summaryrefslogtreecommitdiffstats
path: root/meta-agl-ic-container/recipes-core/systemd
diff options
context:
space:
mode:
authorNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>2024-11-12 01:02:34 +0900
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2024-11-21 09:29:15 +0000
commitf1015d6b9c5ef3a88900c08d71334c51a414191b (patch)
treeae590bacc5db8218d3d1bc42d1b5521cb55a2212 /meta-agl-ic-container/recipes-core/systemd
parent2cce5369f778ec23306073c6d1c1916797c6fc99 (diff)
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 <naoto.yamaguchi@aisin.co.jp>
Diffstat (limited to 'meta-agl-ic-container/recipes-core/systemd')
-rw-r--r--meta-agl-ic-container/recipes-core/systemd/systemd-timesyncd-guest/timesyncd-run-guest.conf2
-rw-r--r--meta-agl-ic-container/recipes-core/systemd/systemd-timesyncd-guest_1.0.bb17
2 files changed, 19 insertions, 0 deletions
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/* \
+"