Update need_reboot for dnf-automatic

The need_reboot from dnf-automatic did not match NEED_REBOOT from
needs-restarting.
This commit is contained in:
Klaas Demter 2024-10-15 11:58:15 +02:00 committed by Petr Pisar
parent 8f8b29c765
commit 193e3f4e21
1 changed files with 3 additions and 3 deletions

View File

@ -2837,9 +2837,9 @@ class Base(object):
return False
# List taken from DNF needs-restarting
need_reboot = frozenset(('kernel', 'kernel-rt', 'kernel-core', 'glibc',
'linux-firmware', 'systemd', 'dbus',
'dbus-broker', 'dbus-daemon'))
need_reboot = frozenset(('kernel', 'kernel-core', 'kernel-rt', 'glibc',
'linux-firmware', 'systemd', 'dbus',
'dbus-broker', 'dbus-daemon', 'microcode_ctl'))
changed_pkgs = self.transaction.install_set | self.transaction.remove_set
return any(pkg.name in need_reboot for pkg in changed_pkgs)