From 62a5a67b9c7e0fc9658ca0236a9d64b6ab007d9e Mon Sep 17 00:00:00 2001 From: HimbeerserverDE Date: Fri, 5 May 2023 23:28:08 +0200 Subject: wait between switching root and rebooting --- src/main.rs | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3