mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
Afterbdb8e584f4we stopped rebasing the next elapse timestamp unconditionally and the only case where we'd do that was when both last trigger and last inactive timestamps were empty. This covered timer units during boot just fine, since they would have neither of those timestamps set. However, persistent timers (Persistent=yes) store their last trigger timestamp on a persistent storage and load it back after reboot, so the rebasing was skipped in this case. To mitigate this, check the last_trigger timestamp is older than the current machine boot - if so, that means that it came from a stamp file of a persistent timer unit and we need to rebase it to make RandomizedDelaySec= work properly. Follow-up forbdb8e584f4. Resolves: #39739