]> git.ipfire.org Git - thirdparty/systemd.git/commit
timesyncd: make sure to update mtime of clock file on each boot 26137/head
authorLennart Poettering <lennart@poettering.net>
Thu, 19 Jan 2023 19:41:25 +0000 (20:41 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 20 Jan 2023 21:33:05 +0000 (22:33 +0100)
commit1acb4f6157d9c51c658894f4fe4b8ab6a9db3f7e
tree71c6ee4f28663d701891f519697b02a71ebd2329
parent84447fe79d75801317a6a65694667f48c08dde98
timesyncd: make sure to update mtime of clock file on each boot

Let's make sure the timestamp file's mtime is guaranteed to change for
each boot, so that it is a useful indicator of time. Or in other words
this gurantees that systemd-timesyncd.service acts as a new kind of
milestone: that time definitely progressed on this boot even the machine
died abnormally imediately after.
src/timesync/timesyncd.c