Check if device is nvme or mmcblk for partitionilng

This makes sure that mmcblk devices also use the p1/p2 partitioning
numbering unlike other block devices
axtloss/rework-partitioning
axtlos 2 years ago
parent 844e18259d
commit 0426510dbf
No known key found for this signature in database
GPG Key ID: DD6D66939396C90E

@ -102,7 +102,9 @@ pub fn partition(
} else {
partition_no_efi(&device, unakite);
}
if device.to_string_lossy().contains("nvme") {
if device.to_string_lossy().contains("nvme")
|| device.to_string_lossy().contains("mmcblk")
{
part_nvme(&device, efi, unakite);
} else {
part_disk(&device, efi, unakite);

Loading…
Cancel
Save