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.
24 lines
591 B
24 lines
591 B
3 years ago
|
---
|
||
|
- name: Install required packages.
|
||
|
command: arch-chroot {{ root_mount }} pacman -Sy grub efibootmgr os-prober --noconfirm
|
||
|
changed_when: true
|
||
|
|
||
|
- 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 }}"
|