--- partitioning_btrfs_compress_opt: "{{ 'compress=zstd:15' if system_cfg.features.zstd.enabled | bool else '' }}" partitioning_boot_partition_suffix: 1 partitioning_main_partition_suffix: 2 partitioning_efi_size_mib: 512 partitioning_efi_start_mib: 1 partitioning_efi_end_mib: "{{ (partitioning_efi_start_mib | int) + (partitioning_efi_size_mib | int) }}" partitioning_boot_size_mib: 1024 partitioning_use_full_disk: true partitioning_separate_boot: >- {{ (system_cfg.luks.enabled | bool) and (os | lower not in ['archlinux']) }} partitioning_boot_fs_fstype: >- {{ (system_cfg.filesystem | lower) if (system_cfg.filesystem | lower) != 'btrfs' else ('xfs' if is_rhel else 'ext4') }} partitioning_boot_fs_partition_suffix: >- {{ ((partitioning_boot_partition_suffix | int) + 1) if (partitioning_separate_boot | bool) else '' }} partitioning_root_partition_suffix: >- {{ (partitioning_main_partition_suffix | int) + (1 if (partitioning_separate_boot | bool) else 0) }} partitioning_efi_mountpoint: >- {{ '/boot/efi' if (partitioning_separate_boot | bool) else ( '/boot/efi' if is_rhel or (os in ['ubuntu', 'ubuntu-lts'] or (os == 'debian' and (os_version | string) in ['11', '12', '13'])) else '/boot' ) }} partitioning_boot_end_mib: "{{ (partitioning_efi_end_mib | int) + (partitioning_boot_size_mib | int) }}" partitioning_reserved_gb: >- {{ ( (partitioning_efi_size_mib | float) + ((partitioning_boot_size_mib | float) if (partitioning_separate_boot | bool) else 0) ) / 1024 }} partitioning_layout: >- {{ [ { 'number': 1, 'part_start': (partitioning_efi_start_mib | string) + 'MiB', 'part_end': (partitioning_efi_end_mib | string) + 'MiB', 'name': 'efi', 'flags': ['boot', 'esp'] }, { 'number': 2, 'part_start': (partitioning_efi_end_mib | string) + 'MiB', 'part_end': (partitioning_boot_end_mib | string) + 'MiB', 'name': 'boot' }, { 'number': 3, 'part_start': (partitioning_boot_end_mib | string) + 'MiB', 'name': 'root' } ] if partitioning_separate_boot | bool else [ { 'number': 1, 'part_start': (partitioning_efi_start_mib | string) + 'MiB', 'part_end': (partitioning_efi_end_mib | string) + 'MiB', 'name': 'boot', 'flags': ['boot', 'esp'] }, { 'number': 2, 'part_start': (partitioning_efi_end_mib | string) + 'MiB', 'name': 'root' } ] }} partitioning_grub_enable_cryptodisk: >- {{ (system_cfg.luks.enabled | bool) and not (partitioning_separate_boot | bool) and (partitioning_efi_mountpoint == '/boot/efi') }} partitioning_luks_device: "{{ install_drive ~ (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) }} partitioning_disk_size_gb: >- {{ ( partitioning_vm_size if (partitioning_vm_size is defined and (partitioning_vm_size | float) > 0) else ( ( (system_cfg.disks | default([]) | first | default({})).size if system_cfg is defined else 0 ) | default(0) ) ) | float }} partitioning_memory_mb: >- {{ ( partitioning_vm_memory if (partitioning_vm_memory is defined and (partitioning_vm_memory | float) > 0) else ( (system_cfg.memory if system_cfg is defined else 0) | default(0) ) ) | float }} partitioning_swap_size_gb: >- {{ ((partitioning_memory_mb / 1024) >= 16.0) | ternary( (partitioning_memory_mb / 2048) | int, [partitioning_memory_mb / 1024, 4.0] | max | int ) }}