Repository navigation
needs-restarting: Allow selecting the reboot hint's boot time source - #3098
LUX-ETVERITAS wants to merge 1 commit into
Conversation
Systemd can retain an incorrect timestamp if the clock is corrected after boot. Let administrators select the kernel boot time, the PID 1 timestamp, or the service manager timestamp explicitly. Report a failed lookup for an explicit source and retain the automatic fallback when no source is requested. Fixes rpm-software-management#2955 Assisted-by: Codex
PR Summary by Qodoneeds-restarting: Allow selecting the reboot hint's boot time source
AI Description
Merge Risk
|
A machine whose clock is corrected after boot can retain an inaccurate systemd boot timestamp. Administrators can now run
dnf5 needs-restarting --boottimesource=kernelto base the reboot hint onbtimefrom/proc/stat. The option also acceptspid1,systemd, andauto. An explicit source reports an error when unavailable. The default keeps the existing systemd lookup and procfs fallback.Verification
UnitsLoadStartTimestamp. The default,auto, andsystemdqueried the service. Thekernelandpid1selections used procfs directly.Fixes #2955