If systemd detects that the system clock is not correct, it sets it to a "known good" time based on the release date of its version. Since this can still be weeks or months in the past, it will use the timestamp of the `/usr/lib/clock-epoch` file, if it exists, as the reference time. To get our system clock closer to the correct time earlier in the boot process, we update the `clock-epoch` file's timestamp during build. This will cause the clock to be set to approximately the build time of the root filesystem image. Presumably, the rootfs image is built relatively frequently, so the time should be a lot closer to correct than the systemd release date. |
||
---|---|---|
.. | ||
overlay | ||
linux.config | ||
post-build.sh | ||
post-fakeroot.sh | ||
post-image.sh | ||
users |