[pve-devel] [PATCH installer] tui: do not auto reboot on failures

Maximiliano Sandoval m.sandoval at proxmox.com
Thu Jun 22 15:08:40 CEST 2023


Otherwise the user only has 5 seconds to see the error message before
the machine reboots.

Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
 proxmox-tui-installer/src/main.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxmox-tui-installer/src/main.rs b/proxmox-tui-installer/src/main.rs
index d2a5fcf..8d05292 100644
--- a/proxmox-tui-installer/src/main.rs
+++ b/proxmox-tui-installer/src/main.rs
@@ -820,7 +820,7 @@ fn install_progress_dialog(siv: &mut Cursive) -> InstallerView {
                                     .map(|state| state.options.autoreboot)
                                     .unwrap_or_default();
 
-                                if autoreboot {
+                                if autoreboot && success {
                                     let cb_sink = siv.cb_sink();
                                     thread::spawn({
                                         let cb_sink = cb_sink.clone();
-- 
2.39.2






More information about the pve-devel mailing list