fix(bootstrap): RHEL 9 bootstrap from Arch ISO compatibility

This commit is contained in:
2026-02-20 16:45:29 +01:00
parent 8070cc4196
commit 14ff79cfd0
7 changed files with 52 additions and 5 deletions

View File

@@ -51,10 +51,14 @@
- name: Create filesystems on additional disks
when: partitioning_extra_disks | length > 0
vars:
_label_opt: "{{ ('-L ' ~ item.mount.label) if (item.mount.label | default('') | string | length) > 0 else '' }}"
_compat_opt: "{{ '-m bigtime=0 -i nrext64=0,exchange=0 -n parent=0' if (is_rhel | bool and item.mount.fstype == 'xfs') else '' }}"
_all_opts: "{{ ([_label_opt, _compat_opt] | select | join(' ')) or omit }}"
community.general.filesystem:
dev: "{{ item.partition }}"
fstype: "{{ item.mount.fstype }}"
opts: "{{ ('-L ' ~ item.mount.label) if (item.mount.label | default('') | string | length) > 0 else omit }}"
opts: "{{ _all_opts }}"
force: true
loop: "{{ partitioning_extra_disks }}"
loop_control: