install f2fs-tools if f2fs is selected, so mkinitcpio runs properly

Signed-off-by: Dan Johansen <strit@manjaro.org>
This commit is contained in:
Dan Johansen 2021-10-09 17:57:36 +02:00
parent fcefcf168f
commit a8588acf56
No known key found for this signature in database
GPG Key ID: 084A7FC0035B1D49
1 changed files with 1 additions and 0 deletions

View File

@ -241,6 +241,7 @@ create_install() {
;;
f2fs)
info "Adding f2fs support to system..."
$NSPAWN $TMPDIR pacman -S f2fs-tools --noconfirm 1> /dev/null 2>&1
echo "LABEL=ROOT_MNJRO / f2fs compress=zstd,defaults,noatime 0 0" >> $TMPDIR/root/etc/fstab
sed -i '/^MODULES/{s/)/ f2fs)/}' $TMPDIR/root/etc/mkinitcpio.conf
$NSPAWN $TMPDIR mkinitcpio -P 1> /dev/null 2>&1