[systemd-devel] Initial system date and time set by systemd

Lennart Poettering lennart at poettering.net
Mon Jan 3 12:06:58 UTC 2022


On Mo, 03.01.22 13:13, Sergei Poselenov (sposelenov at emcraft.com) wrote:

> Where systemd takes this date "Tue 2020-07-14 19:19:34 UTC"?

It's configurable via the "time-epoch" meson variable at build
time. If you don't specify it, the SOURCE_DATE_EPOCH env var is used
(defined by the reproducible build folks). If that's not set, then
it's the date of the latest git tag in the history of your git
checkout, and if the sources didn't come via git but as tarball or so,
it's the timestamp of the NEWS file.

Or in other words: it's typically the build time of the package, or
the time the release of systemd was done.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list