diff options
Diffstat (limited to 'roles/bootstrap/tasks/install-ubuntu.yml')
| -rw-r--r-- | roles/bootstrap/tasks/install-ubuntu.yml | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/roles/bootstrap/tasks/install-ubuntu.yml b/roles/bootstrap/tasks/install-ubuntu.yml index cb4add5..b3ed656 100644 --- a/roles/bootstrap/tasks/install-ubuntu.yml +++ b/roles/bootstrap/tasks/install-ubuntu.yml @@ -51,15 +51,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 ubuntu EFI boot directory exists" @@ -82,9 +85,9 @@ - name: "Configure Ubuntu boot entries" ansible.builtin.template: src: "refind_ubuntu.conf.j2" - dest: "{{ mnt_boot_path }}/EFI/refind/ubuntu.conf" + dest: "{{ mnt_boot_path }}/EFI/BOOT/ubuntu.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 kernel post-install hook directory exists" |
