Skip to content

Commit

Permalink
Merge pull request #29 from No0ne/patch-2
Browse files Browse the repository at this point in the history
Universal Format (FAT32) needs to be partition type 0x0c to be mountable on MacOS
  • Loading branch information
ALSchwalm authored Sep 24, 2018
2 parents 2a9def2 + 6abad6a commit 063a8a3
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 063a8a3

Please sign in to comment.