summaryrefslogtreecommitdiffstats
path: root/meta-agl-ic-container/recipes-core
diff options
context:
space:
mode:
Diffstat (limited to 'meta-agl-ic-container/recipes-core')
-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/* \
+"