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
31 lines
674 B
3 years ago
|
---
|
||
|
- name: Generate fstab.
|
||
|
include_role:
|
||
|
name: genfstab
|
||
|
vars:
|
||
3 years ago
|
chroot: "{{ root_mount }}"
|
||
3 years ago
|
|
||
|
- name: Check if btrfs-progs is installed.
|
||
3 years ago
|
command: arch-chroot {{ root_mount }}
|
||
3 years ago
|
pacman -Qk btrfs-progs
|
||
3 years ago
|
register: result
|
||
3 years ago
|
failed_when: false
|
||
|
changed_when: false
|
||
|
|
||
|
- name: Install btrfs-progs.
|
||
3 years ago
|
command: arch-chroot {{ root_mount }}
|
||
3 years ago
|
pacman -Sy btrfs-progs --noconfirm
|
||
3 years ago
|
when: result.rc != 0
|
||
3 years ago
|
|
||
|
- name: Configure mkinitcpio.
|
||
|
mkinitcpio:
|
||
|
state: present
|
||
3 years ago
|
path: "{{ root_mount }}/etc/mkinitcpio.conf"
|
||
3 years ago
|
binaries: /usr/bin/btrfs
|
||
|
hooks:
|
||
|
- btrfs
|
||
|
|
||
|
- name: Run mkinitcpio.
|
||
3 years ago
|
command: arch-chroot {{ root_mount }} mkinitcpio -P
|
||
3 years ago
|
changed_when: true
|