]> git.ipfire.org Git - thirdparty/systemd.git/commit
manager: apply clock epoch on updates too
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 Jun 2024 11:21:45 +0000 (13:21 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 15 Jun 2024 14:20:16 +0000 (16:20 +0200)
commit20fa2bb8939cd258e4f09fb3466d7a8a85af049d
tree82535d56fa0d486b364eee662b75ce7bf3ef21e5
parented23f7cbcb5457be32a5fc133280fb56bfe043d2
manager: apply clock epoch on updates too

If we're updating on a system with an invalid clock, and we're installing
a newer system version with a higher update, adjust the clock. This
way the invariant that the clock is always later than
max(compile time, timestamp file, other timestamp file) is maintained.

Also, adjust the wording of messages. When /usr/lib/clock-epoch was
introduced, "build time" stopped being acurate. Just say "epoch" instead.
src/core/clock-warp.c
src/core/clock-warp.h
src/core/main.c