Skip to content

Commit 50b6825

Browse files
committed
Make 'Universal' drive format FAT32
1 parent 27b0a1b commit 50b6825

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pISO/src/newdrive.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,14 +337,18 @@ impl DriveFormat {
337337
utils::run_check_output("mkfs.ntfs", &["-f", &first_part_path])?;
338338
utils::run_check_output("ntfslabel", &[&first_part_path, name])?;
339339
}
340-
InitialDriveFormat::MacOs | InitialDriveFormat::Universal => {
340+
InitialDriveFormat::MacOs => {
341341
utils::run_check_output("mkfs.exfat", &[&first_part_path])?;
342342
utils::run_check_output("exfatlabel", &[&first_part_path, name])?;
343343
}
344344
InitialDriveFormat::Linux => {
345345
utils::run_check_output("mkfs.ext3", &[&first_part_path])?;
346346
utils::run_check_output("e2label", &[&first_part_path, name])?;
347347
}
348+
InitialDriveFormat::Universal => {
349+
utils::run_check_output("mkfs.msdos", &["-F", "32", "-I", &first_part_path])?;
350+
utils::run_check_output("dosfslabel", &[&first_part_path, name])?;
351+
}
348352
};
349353

350354
utils::run_check_output("losetup", &["-d", &loopback_path.to_string_lossy()])?;

0 commit comments

Comments
 (0)