diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-05-05 23:28:08 +0200 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-05-05 23:28:08 +0200 |
commit | 62a5a67b9c7e0fc9658ca0236a9d64b6ab007d9e (patch) | |
tree | d1194c1dd557ddc1e2012aff2254890f16a6cf1a | |
parent | 6cd7ea7372c8eb6bdc874b73012bbb22db8314ed (diff) |
wait between switching root and rebooting
-rw-r--r-- | src/main.rs | 1 |
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); |