Skip to content

Commit a1b2eb8

Browse files
authored
Merge pull request #397 from kennystrawnmusic/patch-2
Add an additional MB of space to the generated FAT partition
2 parents 457e570 + 52c8338 commit a1b2eb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/fat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub fn create_fat_filesystem(
2626
.truncate(true)
2727
.open(out_fat_path)
2828
.unwrap();
29-
let fat_size_padded_and_rounded = ((needed_size + 1024 * 64 - 1) / MB + 1) * MB;
29+
let fat_size_padded_and_rounded = ((needed_size + 1024 * 64 - 1) / MB + 1) * MB + MB;
3030
fat_file.set_len(fat_size_padded_and_rounded).unwrap();
3131

3232
// choose a file system label

0 commit comments

Comments
 (0)