summaryrefslogtreecommitdiff
path: root/meta-hpe/classes/hpe-rootfs-postcommands.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta-hpe/classes/hpe-rootfs-postcommands.bbclass')
-rw-r--r--meta-hpe/classes/hpe-rootfs-postcommands.bbclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta-hpe/classes/hpe-rootfs-postcommands.bbclass b/meta-hpe/classes/hpe-rootfs-postcommands.bbclass
new file mode 100644
index 000000000..6980c2312
--- /dev/null
+++ b/meta-hpe/classes/hpe-rootfs-postcommands.bbclass
@@ -0,0 +1,7 @@
+touch_var_lib_systemd_clock() {
+ install -d ${IMAGE_ROOTFS}/var/lib/systemd/timesync/
+ touch ${IMAGE_ROOTFS}/var/lib/systemd/timesync/clock
+}
+
+ROOTFS_POSTPROCESS_COMMAND += '${@bb.utils.contains("DISTRO_FEATURES", "systemd", "touch_var_lib_systemd_clock; ", "", d)}'
+