Install xfsprogs when rootfs is xfs

Currently when rootfs is xfs and lvm2 is enabled,
`mkinitcpio -p linux` returns 1 when fsck.xfs is missing
which fails the whole installation.
This commit is contained in:
Timothy Redaelli 2021-08-02 17:05:21 +02:00
parent 1397085d27
commit f8d673dc7a

View file

@ -124,6 +124,9 @@ install_packages() {
[ "$bootloader" != "none" ] && packages="$packages $bootloader" [ "$bootloader" != "none" ] && packages="$packages $bootloader"
# XXX Install gptdisk for syslinux. To be removed then FS#45029 will be closed # XXX Install gptdisk for syslinux. To be removed then FS#45029 will be closed
[ "$bootloader" = "syslinux" ] && packages="$packages gptfdisk" [ "$bootloader" = "syslinux" ] && packages="$packages gptfdisk"
while read -r _ mountpoint filesystem _; do
[ "$mountpoint" = "/" -a "$filesystem" = "xfs" ] && packages="$packages xfsprogs"
done < /proc/mounts
# Black magic! # Black magic!
"/root.$cpu_type/usr/lib"/ld-*.so --library-path "/root.$cpu_type/usr/lib" \ "/root.$cpu_type/usr/lib"/ld-*.so --library-path "/root.$cpu_type/usr/lib" \
"/root.$cpu_type/usr/bin/chroot" "/root.$cpu_type" /usr/bin/pacstrap -M /mnt $packages "/root.$cpu_type/usr/bin/chroot" "/root.$cpu_type" /usr/bin/pacstrap -M /mnt $packages