fix(dnf): add -y to dnf5 offline reboot and dnf system-upgrade reboot to prevent stdin hang

This commit is contained in:
soda64 committed 2026-10-02 19:16:19 +02:00
1 parent 89cee406df
commit 74b0976d2f
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -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"])