RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2124793 - automatic reboot in dnf-automatic in RHEL 9
Summary: automatic reboot in dnf-automatic in RHEL 9
Keywords:
Status: CLOSED ERRATA
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-11-07 11:33 UTC (History)
11 users (show)

Fixed In Version: dnf-4.14.0-6.el9
Doc Type: Enhancement
Doc Text:
.New DNF Automatic `reboot` option for an automatic reboot after an upgrade With this enhancement, you can use the DNF Automatic `reboot` option to set your system to automatically reboot to apply the changes after an upgrade. The `reboot` option supports the following settings: * `never` does not reboot the system. This is the current behavior. * `when-changed` triggers a reboot after any upgrade. * `when-needed` triggers a reboot only when rebooting is required to apply changes, for example, when systemd or the kernel is upgraded. You can use the `reboot_command` option to customize the command used to reboot. The default reboot command is `shutdown -r`.
Clone Of:
Environment:
Last Closed: 2023-11-07 08:54:41 UTC
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
Red Hat Product Errata RHBA-2023:6645 0 None None None 2023-11-07 08:54:48 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?

Comment 16 errata-xmlrpc 2023-11-07 08:54:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (dnf bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:6645


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