From 52c8338fcdbef569c5d4d2ad589dc2c999b16a41 Mon Sep 17 00:00:00 2001 From: Kenny Strawn Date: Tue, 24 Oct 2023 05:13:08 -0700 Subject: [PATCH] Add an additional MB of space to the generated FAT partition --- src/fat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fat.rs b/src/fat.rs index aa2a450b..c81033b5 100644 --- a/src/fat.rs +++ b/src/fat.rs @@ -26,7 +26,7 @@ pub fn create_fat_filesystem( .truncate(true) .open(out_fat_path) .unwrap(); - let fat_size_padded_and_rounded = ((needed_size + 1024 * 64 - 1) / MB + 1) * MB; + let fat_size_padded_and_rounded = ((needed_size + 1024 * 64 - 1) / MB + 1) * MB + MB; fat_file.set_len(fat_size_padded_and_rounded).unwrap(); // choose a file system label