aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-05-05 23:28:08 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-05-05 23:28:08 +0200
commit62a5a67b9c7e0fc9658ca0236a9d64b6ab007d9e (patch)
treed1194c1dd557ddc1e2012aff2254890f16a6cf1a
parent6cd7ea7372c8eb6bdc874b73012bbb22db8314ed (diff)
wait between switching root and rebooting
-rw-r--r--src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 7b4f5ab..c724d30 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -158,6 +158,7 @@ fn update_instance(args: Args) -> anyhow::Result<()> {
println!("Switching to inactive root partition...");
post(&clt, base.join("/switch")?)?;
+ thread::sleep(Duration::from_secs(1));
println!("Rebooting...");
reboot(clt, base);