Closed jtetrault closed 3 years ago
awesome, thanks @jtetrault looks like:
https://github.com/systemd/systemd/commit/53d133ea1bb4c4ed44c4b6aae42f1feb33d9cb78
So with: v235
stretch: v232 buster: v241 bullseye: v247.3
Thanks @jtetrault , i pushed out a fix, once we drop stretch, i'll remove that location, so for now, it's touching both locations.
Awesome, thanks! No harm in just touching both.
Hey, it appears that the /var/lib/systemd/timesync
directory doesn't exist yet, so the new touch
cmd is failing. I think a mkdir -p /var/lib/systemd/timesync
just needs to be inserted before the touch
.
Please let me know if you need a new issue created!
@jtetrault and merged. ;) after my apm mustang went down, i haven't really had ci on this repo lately, i need to fix. that..
https://github.com/RobertCNelson/omap-image-builder/commit/21a414fb6c3765f83ec7d244352af60de67f582b
Hi there,
I am using the
image-builder
repository to build a custom Debian Buster flasher image. I noticed that upon first boot of the system, that the start time of services was much further in the past than expected (2 years 2 months).I looked at
scripts/chroot.sh
and saw thetouch /var/lib/systemd/clock
command around line 1117 that is intended to set the initial timestamp that the system uses. It appears that at some point,systemd-timesyncd
switched to using/var/lib/systemd/timesync/clock
instead.I don't know if the correct file is different between the versions available to Stretch and Buster.
I manually mounted the sd card, ran
touch -m /var/lib/systemd/timesync/clock
, changed the ownership tosystemd-timesync
, and the expected intial timestamp was correct after flashing the BeagleBone Black again and booting it up.