Bug 2124793 - automatic reboot in dnf-automatic in RHEL 9
Summary: automatic reboot in dnf-automatic in RHEL 9
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: dnf
Version: 9.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: Evan Goode
QA Contact: swm-qe
Mariya Pershina
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-07 06:38 UTC by Anand
Modified: 2023-08-03 20:08 UTC (History)
11 users (show)

Fixed In Version: dnf-4.14.0-6.el9
Doc Type: Enhancement
Doc Text:
Add ability in DNF Automatic to automatically trigger a reboot after an upgrade. Users of DNF Automatic can now set their system to automatically reboot to apply upgrades. The `reboot` option supports three settings: ``never`` does not reboot the system (current behavior). ``when-changed`` triggers a reboot after any upgrade. ``when-needed`` triggers a reboot only when rebooting is necessary to apply changes, such as when systemd or the kernel is upgraded. The `reboot_command` option allows customizing the command used to reboot (default is `shutdown -r`).
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-133388 0 None None None 2022-09-07 06:46:00 UTC

Description Anand 2022-09-07 06:38:08 UTC
Description of problem:

Customer is asking for an enhanced feature in RHEL 9 / RHEL 8 with following options,

1) reboot on any changes occurred 
2) reboot when dnf needs-restarting suggests to reboot
3) do not reboot (current behavior)

Version-Release number of selected component (if applicable):

dnf

Comment 1 Anand 2022-09-07 06:44:13 UTC
Sale force case # 03303685

Customer has requested for enhanced feature 

currently dnf-automatic does not support an automatic reboot after applying upgrades. Please implement this.
There is a BZ for this already that is against fedora https://bugzilla.redhat.com/show_bug.cgi?id=1491190 please open one against rhel 8/9 and make a note of customer interest in this.

options I would like to have:
1) reboot on any changes
2) reboot when dnf needs-restarting suggests to reboot
3) do not reboot (current behaviour)

Comment 2 Evan Goode 2023-01-17 20:04:01 UTC
I've started work on this feature here: https://github.com/rpm-software-management/dnf/pull/1879.

Comment 3 Evan Goode 2023-01-26 14:40:32 UTC
https://github.com/rpm-software-management/dnf/pull/1879 has been merged! See the docs for the `reboot` and `reboot_command` options in https://github.com/rpm-software-management/dnf/blob/master/doc/automatic.rst.

Comment 5 peacepenguin 2023-02-24 19:30:12 UTC
Looks like the needed feature has been merged to the repo, and docs too. Can we update this bug with an expected target version of arrival in RHEL, maybe/hopefully 9.2?


Note You need to log in before you can comment on or make changes to this bug.