fix(dnf): add -y to dnf5 offline reboot and dnf system-upgrade reboot to prevent stdin hang
This commit is contained in:
1 parent
89cee406df
commit
74b0976d2f
2 files changed
+3
-3
No files matched your search
@@ -230,8 +230,8 @@ def trigger_system_reboot(
|
||||
|
||||
cmd_candidates: List[List[str]] = []
|
||||
if is_release_upgrade and distro_id.lower() == "fedora":
|
||||
cmd_candidates.append(["dnf5", "offline", "reboot"])
|
||||
cmd_candidates.append(["dnf", "system-upgrade", "reboot"])
|
||||
cmd_candidates.append(["dnf5", "-y", "offline", "reboot"])
|
||||
cmd_candidates.append(["dnf", "-y", "system-upgrade", "reboot"])
|
||||
|
||||
cmd_candidates.append(["systemctl", "reboot"])
|
||||
cmd_candidates.append(["reboot"])
|
||||
|
||||
Reference in new issue
Block a user