You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
885 B

---
- name: Install required packages.
command: arch-chroot {{ root_mount }} pacman -Sy grub efibootmgr os-prober --noconfirm
changed_when: true
- name: Get luks device node uuid.
shell: |
set -e -o pipefail
blkid {{ disk_egbl_luks_device_node }} -o value | head -1
register: result
changed_when: false
- name: Assign device node id to variable.
set_fact:
bootloader_priv_luks_device_node_uuid: "{{ result.stdout }}"
- name: Copy grub default config.
template:
src: files/grub
dest: "{{ root_mount }}/etc/default/grub"
owner: root
group: root
mode: 0644
- name: Install grub.
command:
cmd: arch-chroot {{ root_mount }} grub-install --efi-directory=/boot/efi --bootloader-id=grub
creates: "{{ root_mount }}/boot/efi/EFI/grub"
- name: Install theme.
include_role:
name: grub-theme
vars:
chroot: "{{ root_mount }}"