diff --git a/pISO/src/newdrive.rs b/pISO/src/newdrive.rs index 018f053..560e646 100644 --- a/pISO/src/newdrive.rs +++ b/pISO/src/newdrive.rs @@ -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", &[ @@ -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();