Skip to contentSkip to conversation

systemd: allow setting time-epoch to epoch

PATCH New Dan McGregor 1 participant 1 message Jun 6, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 systemd: allow setting time-epoch to epoch

From: Dan McGregor <[email protected]>

systemd by default sets the system time at boot to the date of its NEWS file. It provides the option to change that at build time, and some projects need to come up at a particular date if no RTC is present.

Provide the option to set the time at boot to the epoch instead of the date of the NEWS file.

---
 meta/recipes-core/systemd/systemd_237.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/systemd/systemd_237.bb +1 -0
index 2e6558ded13..a7b9595bb47 100644
@@ -155,6 +155,7 @@ PACKAGECONFIG[seccomp] = "-Dseccomp=true,-Dseccomp=false,libseccomp"
 PACKAGECONFIG[selinux] = "-Dselinux=true,-Dselinux=false,libselinux,initscripts-sushell"
 PACKAGECONFIG[smack] = "-Dsmack=true,-Dsmack=false"
 PACKAGECONFIG[sysusers] = "-Dsysusers=true,-Dsysusers=false"
+PACKAGECONFIG[time-epoch] = "-Dtime-epoch=0,,"
 PACKAGECONFIG[timedated] = "-Dtimedated=true,-Dtimedated=false"
 PACKAGECONFIG[timesyncd] = "-Dtimesyncd=true,-Dtimesyncd=false"
 PACKAGECONFIG[usrmerge] = "-Dsplit-usr=false,-Dsplit-usr=true"
Signature · 1 line
2.18.0-dev