-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
packagekit: Use dnf-automatic reboot option if available
dnf 4.15 introduced a `reboot` option for automatic updates at last [1][2]. This is available in all current Fedoras and RHEL 9.3+, but not yet in RHEL 8. On systems which support it (i.e. which have a `reboot=` option in automatic.conf), set that to "when-needed" instead of the unit drop-in hack. Remove the latter to clean up on upgrades; that will only have an effect if the admin disables and re-enables automatic updates, but that's better than nothing. In testWithAvailableUpdates(), adjust the mocked package name to "kernel-rt", to match dnf's hardcoded list in base.py `reboot_needed()`. Also increase the number of journal lines to make sure that the message doesn't "scroll off". Fixes https://issues.redhat.com/browse/RHEL-16392 [1] https://github.com/rpm-software-management/dnf/blob/master/doc/automatic.rst#commands-section [2] https://bugzilla.redhat.com/show_bug.cgi?id=1491190
- Loading branch information
1 parent
d83a0a8
commit ebab018
Showing
2 changed files
with
34 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters