diff --git a/archinstall/lib/user_interaction/system_conf.py b/archinstall/lib/user_interaction/system_conf.py index d176c96..16b0fb8 100644 --- a/archinstall/lib/user_interaction/system_conf.py +++ b/archinstall/lib/user_interaction/system_conf.py @@ -225,12 +225,15 @@ def get_all_lvmdrives(disk_layouts: Dict[str,Any] = None) -> List[Dict[str,Any]] # εˆ†εŒΊζœ‰ for index,partition in enumerate(partitions): if (device := partition.get('device',None)) is not None and device.get('as_lvm',False): + disk_partition_name = disk + str(index + 1) + if disk.lower().find("nvme".lower()) >= 0: + disk_partition_name = disk + "p" + str(index + 1) if lvm_drives_obj.get(device['vg_name'],None) is not None: lvm_drives_obj[device['vg_name']].vg_size += device['vg_size'] - lvm_drives_obj[device['vg_name']].pvs.append(disk + str(index + 1)) + lvm_drives_obj[device['vg_name']].pvs.append(disk_partition_name) lvm_drives_obj[device['vg_name']].partitions.extend(device.get('partitions',[])) else: - lvm_drives_obj[device['vg_name']] = VgPartition(device['vg_name'],device['vg_size'],[disk + str(index + 1)],device.get('partitions',[])) + lvm_drives_obj[device['vg_name']] = VgPartition(device['vg_name'],device['vg_size'],[disk_partition_name],device.get('partitions',[])) # if (device := partition.get('device',None)) is not None and len(lvs := device.get('partitions',[])) > 0: # print("lvm_drives_obj=====>>>>>>",lvm_drives_obj) # lvm_drives_obj[device['vg_name']].partitions.extend(lvs)