fix(global_defaults): remove dead /swap and make pacman cache arch-only in reserved mounts

This commit is contained in:
2026-02-21 02:56:20 +01:00
parent e7a0cc4f62
commit d9efb54bec

View File

@@ -333,15 +333,11 @@
- name: Validate disk mount definitions
when: system_cfg.disks is defined
vars:
reserved_mounts:
- /boot
- /boot/efi
- /home
- /swap
- /var
- /var/cache/pacman/pkg
- /var/log
- /var/log/audit
reserved_mounts: >-
{{
['/boot', '/boot/efi', '/home', '/var', '/var/log', '/var/log/audit']
+ (['/var/cache/pacman/pkg'] if os == 'archlinux' else [])
}}
disk_mount: "{{ (item.mount.path | default('') | string) | trim }}"
disk_fstype: "{{ (item.mount.fstype | default('') | string) | trim }}"
disk_device: "{{ (item.device | default('') | string) | trim }}"