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:
parent
1397085d27
commit
f8d673dc7a
1 changed files with 3 additions and 0 deletions
3
vps2arch
3
vps2arch
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue