io::{BufRead, BufReader, Write},
path::PathBuf,
process::ExitCode,
+ thread,
+ time::Duration,
};
use proxmox_installer_common::setup::{
// TODO: (optionally) do a HTTP post with basic system info, like host SSH public key(s) here
+ for secs in (0..=5).rev() {
+ info!("Installation finished - auto-rebooting in {secs} seconds ..");
+ thread::sleep(Duration::from_secs(1));
+ }
+
ExitCode::SUCCESS
}
if state == "err" {
bail!("{message}");
}
- info!("Finished: '{state}' {message}");
+ // Do not print anything if the installation was successful,
+ // as we handle that here ourselves
}
};
}
verify_locale_settings(answer, locales)?;
let mut config = InstallConfig {
- autoreboot: 1_usize,
+ autoreboot: 0,
filesys: filesystem,
hdsize: 0.,
swapsize: None,
.unwrap_or(runtime_info.disks[first_selected_disk].size);
}
}
+
+ // never print the auto reboot text after finishing to avoid the delay, as this is handled by
+ // the auto-installer itself anyway. The auto-installer might still perform some post-install
+ // steps after running the low-level installer.
+ config.autoreboot = 0;
Ok(config)
}