]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: deserialize soft-reboot shutdown timestamps into previous-* fields 42671/head
authorLuca Boccassi <luca.boccassi@gmail.com>
Fri, 26 Jun 2026 12:57:27 +0000 (13:57 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 1 Jul 2026 10:16:46 +0000 (11:16 +0100)
commitc052db8cb1bc6be4b314e69ba24a17d3fdc8c35a
tree6c621a8befa7fdbaadf9bf2513e7dded3a8b1a86
parent768b3423a4c801f3541014ff75839eb6bf685c5b
core: deserialize soft-reboot shutdown timestamps into previous-* fields

Until now the SHUTDOWN_START/FINISH timestamps were carried across a
soft-reboot in the same fields, so afterwards they described the
previous boot rather than the current one, mixing current- and
previous-boot data in the same set. Mirror what is now done on kexec
and move them into the PREVIOUS_SHUTDOWN_* fields on deserialization.

Also reset local timestamps for events that rerun (eg: generators,
units loading, etc) on soft-reboot and switch-root.
src/analyze/analyze-time-data.c
src/analyze/analyze-time-data.h
src/core/manager-serialize.c
src/core/manager.c
src/core/manager.h