AlmaLinux / almalinux-deploy

EL to AlmaLinux migration tool.
GNU General Public License v3.0
542 stars 71 forks source link

needs-restarting produces false positive #177

Open vchepkov opened 12 months ago

vchepkov commented 12 months ago

Noticed the following, after reboot (multiple in fact), server still shows that reboot is necessary.

# needs-restarting -r
Core libraries or services have been updated since boot-up:
  * glibc
  * linux-firmware

Reboot is required to fully utilize these updates.
More information: https://access.redhat.com/solutions/27943

# uptime
 10:19:40 up 11 min,  1 user,  load average: 0.01, 0.10, 0.09

# rpm -q --last glibc linux-firmware
linux-firmware-20230404-117.git2e92a49f.el8_8.alma.1.noarch Sat 07 Oct 2023 08:25:51 AM EDT
glibc-2.28-225.el8_8.6.x86_64                 Sat 07 Oct 2023 08:25:20 AM EDT

# rpm -qf /bin/needs-restarting
yum-utils-4.0.21-19.el8_8.alma.1.noarch
vchepkov commented 12 months ago

I believe the problem was addressed in RHEL with this fix: https://github.com/rpm-software-management/dnf-plugins-core/commit/eb0a223c84d4a065ec7b54faa28679d88aef559d

Which seems to be missing in Alma