Skip to content

Commit

Permalink
Make 'Universal' drive format FAT32
Browse files Browse the repository at this point in the history
  • Loading branch information
ALSchwalm committed Sep 19, 2018
1 parent 27b0a1b commit 50b6825
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pISO/src/newdrive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,14 +337,18 @@ impl DriveFormat {
utils::run_check_output("mkfs.ntfs", &["-f", &first_part_path])?;
utils::run_check_output("ntfslabel", &[&first_part_path, name])?;
}
InitialDriveFormat::MacOs | InitialDriveFormat::Universal => {
InitialDriveFormat::MacOs => {
utils::run_check_output("mkfs.exfat", &[&first_part_path])?;
utils::run_check_output("exfatlabel", &[&first_part_path, name])?;
}
InitialDriveFormat::Linux => {
utils::run_check_output("mkfs.ext3", &[&first_part_path])?;
utils::run_check_output("e2label", &[&first_part_path, name])?;
}
InitialDriveFormat::Universal => {
utils::run_check_output("mkfs.msdos", &["-F", "32", "-I", &first_part_path])?;
utils::run_check_output("dosfslabel", &[&first_part_path, name])?;
}
};

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

0 comments on commit 50b6825

Please sign in to comment.