From 8929640bc8aa84325315f734ba1e75cb9c44892f Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Sun, 21 Sep 2025 22:17:54 +0200 Subject: Fix the rEFInd timeout and styling --- roles/bootstrap/tasks/install-archlinux.yml | 10 +++++++++- roles/bootstrap/tasks/install-ubuntu.yml | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) (limited to 'roles/bootstrap/tasks') diff --git a/roles/bootstrap/tasks/install-archlinux.yml b/roles/bootstrap/tasks/install-archlinux.yml index 8807687..1b304ce 100644 --- a/roles/bootstrap/tasks/install-archlinux.yml +++ b/roles/bootstrap/tasks/install-archlinux.yml @@ -19,7 +19,7 @@ cmd: "arch-chroot {{ mnt_root_path }} refind-install" changed_when: true -- name: "Configure rEFInd" +- name: "Configure rEFInd boot options" ansible.builtin.copy: dest: "{{ mnt_root_path }}/boot/refind_linux.conf" mode: "0644" @@ -27,6 +27,14 @@ "Boot with defaults" "root=PARTLABEL={{ partition_root.name }} rw" "Boot to terminal" "root=PARTLABEL={{ partition_root.name }} rw systemd.unit=multi-user.target" +- name: "Configure rEFInd settings" + ansible.builtin.copy: + dest: "{{ mnt_boot_path }}/EFI/refind/refind.conf" + mode: "0644" + content: | + timeout 5 + textonly true + - name: "Configure pacman hook for rEFInd kernel updates" ansible.builtin.copy: dest: "{{ mnt_root_path }}/etc/pacman.d/100-refind.hook" diff --git a/roles/bootstrap/tasks/install-ubuntu.yml b/roles/bootstrap/tasks/install-ubuntu.yml index c5b57ce..bcdebdb 100644 --- a/roles/bootstrap/tasks/install-ubuntu.yml +++ b/roles/bootstrap/tasks/install-ubuntu.yml @@ -54,10 +54,18 @@ cmd: "arch-chroot {{ mnt_root_path }} refind-install" changed_when: true -- name: "Configure rEFInd" +- name: "Configure rEFInd boot options" ansible.builtin.copy: dest: "{{ mnt_root_path }}/boot/refind_linux.conf" mode: "0644" content: | "Boot with defaults" "root=PARTLABEL={{ partition_root.name }} rw" "Boot to terminal" "root=PARTLABEL={{ partition_root.name }} rw systemd.unit=multi-user.target" + +- name: "Configure rEFInd settings" + ansible.builtin.copy: + dest: "{{ mnt_boot_path }}/EFI/refind/refind.conf" + mode: "0644" + content: | + timeout 5 + textonly true -- cgit v1.2.3