Bug 2157844

Summary: [RFE] dnf system-upgrade: add --poweroff option to reboot subcommand
Product: Red Hat Enterprise Linux 9 Reporter: Jan Kolarik <jkolarik>
Component: dnf-plugins-coreAssignee: Jan Kolarik <jkolarik>
Status: VERIFIED --- QA Contact: swm-qe
Severity: low Docs Contact: Mariya Pershina <mpershin>
Priority: medium    
Version: 9.3CC: james.antill, mbanas, mpershin, tbajer
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dnf-plugins-core-4.3.0-6.el9 Doc Type: Enhancement
Doc Text:
.The new `--poweroff` option allows you to shut down the system after installing updates With this enhancement, the new `--poweroff` option has been added to the `reboot` command of the `dnf system-upgrade` plugin. You can use this option to shut down the system after installing updates instead of rebooting.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Kolarik 2023-01-03 08:05:43 UTC
Adds an option to shutdown the system after updates have been installed, instead of rebooting.


Usages:

dnf offline-distrosync reboot --poweroff
dnf offline-upgrade reboot --poweroff
dnf system-upgrade reboot --poweroff


Additional info:

This is a backport of the community PR from upstream: https://github.com/rpm-software-management/dnf-plugins-core/pull/467.

Comment 2 Jan Kolarik 2023-01-03 08:13:14 UTC
Already fixed by upstream PRs:

https://github.com/rpm-software-management/dnf-plugins-core/pull/467 - implementation of logic
https://github.com/rpm-software-management/dnf-plugins-core/pull/471 - strings translation fix