Otherwise the user only has 5 seconds to see the error message before the machine reboots.
Signed-off-by: Maximiliano Sandoval <m.sando...@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 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel