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.

31 lines
674 B

---
- name: Generate fstab.
include_role:
name: genfstab
vars:
chroot: "{{ root_mount }}"
- name: Check if btrfs-progs is installed.
command: arch-chroot {{ root_mount }}
pacman -Qk btrfs-progs
register: result
failed_when: false
changed_when: false
- name: Install btrfs-progs.
command: arch-chroot {{ root_mount }}
pacman -Sy btrfs-progs --noconfirm
when: result.rc != 0
- name: Configure mkinitcpio.
mkinitcpio:
state: present
path: "{{ root_mount }}/etc/mkinitcpio.conf"
binaries: /usr/bin/btrfs
hooks:
- btrfs
- name: Run mkinitcpio.
command: arch-chroot {{ root_mount }} mkinitcpio -P
changed_when: true