Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rhel-9.6: Fix for RHEL-14900 ("needs-restarting -r" reports no reboot required if RTC is not in UTC) #570

Merged

Conversation

evan-goode
Copy link
Member

Backport of #560 to rhel-9.6.

Upstream commit: 17b38c8

Resolves https://issues.redhat.com/browse/RHEL-14900.

Resolves https://issues.redhat.com/browse/RHEL-35577.

Get the boot time from UnitsLoadStartTimestamp if systemd is available,
but make sure to use the kernel boot time for calculating process start
times using data from procfs. The previous attempt [1] at this failed to
do so and introduced a regression [2].

Also, get the kernel boot time from the btime field of /proc/stat instead of
calculating it from /proc/uptime, to be consistent with what procps-ng
does.

[1] rpm-software-management#527
[2] https://issues.redhat.com/browse/RHEL-39775
@kontura kontura merged commit 8cf4002 into rpm-software-management:rhel-9.6 Nov 21, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants