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
801 B

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