From 0426510dbf3b37ecbe6b08c455d7e386073aafe5 Mon Sep 17 00:00:00 2001 From: axtlos Date: Wed, 8 Mar 2023 21:12:00 +0100 Subject: [PATCH] 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 --- src/functions/partition.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/functions/partition.rs b/src/functions/partition.rs index 1f96d4e..978256d 100755 --- a/src/functions/partition.rs +++ b/src/functions/partition.rs @@ -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);