diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 51ba9e4..3b434c0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -134,6 +134,10 @@ fn update_instance(args: Args) -> anyhow::Result<()> { write_mbr(&mut mbr, &mut boot, &buf["vmlinuz"], &buf["cmdline.txt"])?; write_root(&mut root, &args.arch, &args.crates, &args.git, &args.init)?; + mbr.rewind()?; + boot.rewind()?; + root.rewind()?; + mbr.read_to_end(&mut mbr_buf)?; boot.read_to_end(&mut boot_buf)?; root.read_to_end(&mut root_buf)?; |