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 19da8c0e68
commit a1c8b5e2dd

View File

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