diff options
Diffstat (limited to 'roles/bootstrap/tasks/install-archlinux.yml')
| -rw-r--r-- | roles/bootstrap/tasks/install-archlinux.yml | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/roles/bootstrap/tasks/install-archlinux.yml b/roles/bootstrap/tasks/install-archlinux.yml index f32aebc..9a864c4 100644 --- a/roles/bootstrap/tasks/install-archlinux.yml +++ b/roles/bootstrap/tasks/install-archlinux.yml @@ -42,15 +42,18 @@ - name: "Install rEFInd to EFI partition" ansible.builtin.command: - cmd: "arch-chroot {{ mnt_root_path }} refind-install" + # NOTE: --usedefault installs to EFI/BOOT/ without NVRAM registration + # This ensures consistent install location across refind versions (0.13.x installs to EFI/refind/ + # via NVRAM, 0.14.x falls back to EFI/BOOT/ when NVRAM write fails in chroot) + cmd: "arch-chroot {{ mnt_root_path }} refind-install --usedefault {{ partition_boot.dev }}" changed_when: true - name: "Configure rEFInd base settings" ansible.builtin.template: src: "refind.conf.j2" - dest: "{{ mnt_boot_path }}/EFI/refind/refind.conf" + dest: "{{ mnt_boot_path }}/EFI/BOOT/refind.conf" mode: "0644" - # NOTE: this is skipped because the docker test doesn't have proper EFI/refind directory created + # NOTE: this is skipped because the docker test doesn't have proper EFI/BOOT directory created tags: ["molecule-notest"] - name: "Ensure arch EFI boot directory exists" @@ -72,9 +75,9 @@ - name: "Configure Arch Linux boot entries" ansible.builtin.template: src: "refind_arch.conf.j2" - dest: "{{ mnt_boot_path }}/EFI/refind/arch.conf" + dest: "{{ mnt_boot_path }}/EFI/BOOT/arch.conf" mode: "0644" - # NOTE: this is skipped because the docker test doesn't have proper EFI/refind directory created + # NOTE: this is skipped because the docker test doesn't have proper EFI/BOOT directory created tags: ["molecule-notest"] - name: "Install kernel sync script for EFI partition" |
