dnf/0036-Update-need_reboot-for-dnf-automatic.patch
Marek Blaha 8f8fd5155f automatic: Backport patches
- upstream commit 130d6b91694a93a142be8c3767bfc711245dea1c to resolve
  error in dnf.exceptions.Error class instantiating
- upstream commit 193e3f4e212e1fafcd24faad7f026ea05d2f97b9 to match
  dnf-automatic need_reboot behavior to that of `dnf needs-restarting`

Resolves: RHEL-45505
Resolves: RHEL-62830
2024-12-12 11:08:28 +01:00

30 lines
1.1 KiB
Diff

From ed14b8c8425c6fb6dbade3028ac0118086052b1b Mon Sep 17 00:00:00 2001
From: Klaas Demter <Klaas-@users.noreply.github.com>
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 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dnf/base.py b/dnf/base.py
index 13222407..168207b5 100644
--- a/dnf/base.py
+++ b/dnf/base.py
@@ -2832,8 +2832,8 @@ class Base(object):
# List taken from DNF needs-restarting
need_reboot = frozenset(('kernel', 'kernel-rt', 'glibc',
- 'linux-firmware', 'systemd', 'dbus',
- 'dbus-broker', 'dbus-daemon'))
+ '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)
--
2.47.1