fix(partitioning): add partition separator for NVMe/mmcblk device paths
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
---
|
||||
partitioning_btrfs_compress_opt: "{{ 'compress=zstd:15' if system_cfg.features.zstd.enabled | bool else '' }}"
|
||||
# Partition separator: 'p' for NVMe/mmcblk (device path ends in digit), empty for SCSI/virtio.
|
||||
# Examples: /dev/sda → /dev/sda1, /dev/nvme0n1 → /dev/nvme0n1p1
|
||||
partitioning_part_sep: "{{ 'p' if (install_drive | default('') | regex_search('\\d$')) else '' }}"
|
||||
partitioning_boot_partition_suffix: 1
|
||||
partitioning_main_partition_suffix: 2
|
||||
partitioning_efi_size_mib: 512
|
||||
@@ -113,12 +116,12 @@ partitioning_grub_enable_cryptodisk: >-
|
||||
and not (partitioning_separate_boot | bool)
|
||||
and (partitioning_efi_mountpoint == '/boot/efi')
|
||||
}}
|
||||
partitioning_luks_device: "{{ install_drive ~ (partitioning_root_partition_suffix | string) }}"
|
||||
partitioning_luks_device: "{{ install_drive ~ partitioning_part_sep ~ (partitioning_root_partition_suffix | string) }}"
|
||||
partitioning_root_device: >-
|
||||
{{
|
||||
'/dev/mapper/' + system_cfg.luks.mapper
|
||||
if (system_cfg.luks.enabled | bool)
|
||||
else install_drive ~ (partitioning_root_partition_suffix | string)
|
||||
else install_drive ~ partitioning_part_sep ~ (partitioning_root_partition_suffix | string)
|
||||
}}
|
||||
partitioning_disk_size_gb: >-
|
||||
{{
|
||||
|
||||
Reference in New Issue
Block a user