From 53ea2ac1654639ff4912b13747d1e1db395c6cae Mon Sep 17 00:00:00 2001 From: Klaas Demter Date: Tue, 15 Oct 2024 11:58:15 +0200 Subject: [PATCH] Update need_reboot for dnf-automatic The need_reboot from dnf-automatic did not match NEED_REBOOT from needs-restarting. --- dnf/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dnf/base.py b/dnf/base.py index 42075ff5e8..698021b1c4 100644 --- a/dnf/base.py +++ b/dnf/base.py @@ -2837,9 +2837,9 @@ def reboot_needed(self): 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)