Skip to content

Commit

Permalink
Universal Format (FAT32) needs to be partition type 0x0c to be mounta…
Browse files Browse the repository at this point in the history
…ble on MacOS
  • Loading branch information
No0ne committed Sep 23, 2018
1 parent 50b6825 commit 6abad6a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions pISO/src/newdrive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,7 @@ impl DriveFormat {
// First create the partition table
match *format {
InitialDriveFormat::Windows
| InitialDriveFormat::MacOs
| InitialDriveFormat::Universal => {
| InitialDriveFormat::MacOs => {
utils::run_check_output(
"parted",
&[
Expand All @@ -318,6 +317,17 @@ impl DriveFormat {
],
)?;
}
InitialDriveFormat::Universal => {
utils::run_check_output(
"parted",
&[
"--script",
&volume.path.to_string_lossy(),
"mklabel msdos",
"mkpart primary fat32 0% 100%",
],
)?;
}
};

let volume_path = &volume.path.to_string_lossy();
Expand Down

0 comments on commit 6abad6a

Please sign in to comment.