Webmin 2.660 does not show reboot-required warning on AlmaLinux 10 / DNF5

SYSTEM INFORMATION
OS type and version AlmaLinux 10.2
Webmin version 2.660

After installing updates including a new kernel, Webmin does not show the usual indication on the dashboard that the system requires a reboot.

AlmaLinux/DNF5 correctly detects the reboot requirement:

[root@vps ~]# dnf needs-restarting --reboothint
Core libraries or services have been updated since boot-up:
  * dbus-broker
  * kernel
  * kernel-core

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

[root@vps ~]# echo $?
1

However, the legacy standalone needs-restarting command is not present:

[root@vps ~]# command -v needs-restarting

[root@vps ~]# needs-restarting -r
bash: needs-restarting: command not found

[root@vps ~]# echo $?
127

Seems that Webmin’s reboot-required detection for Red Hat-derived systems checks for and invokes the standalone:

needs-restarting -r

but AlmaLinux 10 uses the DNF5 command:

dnf needs-restarting --reboothint

(or the corresponding DNF5 needs-restarting subcommand).

So DNF5 correctly reports that a reboot is required, but Webmin 2.660 does not display the reboot-required warning. Same Webmin running on AlmaLinux 9.8 does show the warning.

Would it be possible for Webmin’s reboot detection to fall back to the DNF5 dnf needs-restarting command when the legacy standalone needs-restarting executable is unavailable?

I can provide additional diagnostics or test a patch if useful.

Thanks, Martin

SYSTEM INFORMATION
OS type and version Rocky Linux 10.2
Webmin version 2.660
Usermin version 2.560
Virtualmin version 8.2.0 GPL
Theme version 26.60
Apache version 2.4.63
Package updates All installed packages are up to date

Rocky 10, lots of kernel updates recently and never a reboot prompt. I reboot anyway.

David

Hmm, I’m on Rocky 9 and the kernel updates has always shown reboot in the GUI for me, maybe its v10 issue.

Thanks for the heads-up! We will fix it in the next Webmin 2.670 release. You can apply the patch right away to fix this issue:

webmin patch https://github.com/webmin/webmin/commit/7242171