diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-05-05 23:05:06 +0200 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-05-05 23:05:06 +0200 |
commit | 3575721f996ce0f0070af6449fcc8d15a8afcb06 (patch) | |
tree | ce81e50cc6690336fe17f63515990f8bc05c2b4d | |
parent | 871dbdb69e522412c0ff4b2c450a16dee67080cd (diff) |
add delay between uploads
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 806ccb0..7c4403e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -146,12 +146,15 @@ fn update_instance(args: Args) -> anyhow::Result<()> { println!("Uploading boot partition..."); upload(&clt, base.join("/update/boot")?, boot_buf)?; + thread::sleep(Duration::from_secs(1)); println!("Uploading MBR..."); upload(&clt, base.join("/update/mbr")?, mbr_buf)?; + thread::sleep(Duration::from_secs(1)); println!("Uploading root partition..."); upload(&clt, base.join("/update/root")?, root_buf)?; + thread::sleep(Duration::from_secs(1)); println!("Rebooting..."); reboot(clt, base); |