silence mkinitcpio generation when using btrfs filesystem

This commit is contained in:
Dan Johansen 2021-04-01 20:51:16 +02:00
parent af6e80de58
commit 2084c70c4d
No known key found for this signature in database
GPG Key ID: 084A7FC0035B1D49
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ create_install() {
echo "LABEL=ROOT_MNJRO / btrfs subvol=@,compress=zstd,defaults,noatime 0 0" >> $TMPDIR/root/etc/fstab echo "LABEL=ROOT_MNJRO / btrfs subvol=@,compress=zstd,defaults,noatime 0 0" >> $TMPDIR/root/etc/fstab
echo "LABEL=ROOT_MNJRO /home btrfs subvol=@home,compress=zstd,defaults,noatime 0 0" >> $TMPDIR/root/etc/fstab echo "LABEL=ROOT_MNJRO /home btrfs subvol=@home,compress=zstd,defaults,noatime 0 0" >> $TMPDIR/root/etc/fstab
sed -i '/^MODULES/{s/)/ btrfs)/}' $TMPDIR/root/etc/mkinitcpio.conf sed -i '/^MODULES/{s/)/ btrfs)/}' $TMPDIR/root/etc/mkinitcpio.conf
$NSPAWN $TMPDIR/root mkinitcpio -P $NSPAWN $TMPDIR/root mkinitcpio -P 1> /dev/null 2>&1
if [ -f $TMPDIR/root/boot/extlinux/extlinux.conf ]; then if [ -f $TMPDIR/root/boot/extlinux/extlinux.conf ]; then
sed -i 's/APPEND/& rootflags=subvol=@/' $TMPDIR/root/boot/extlinux/extlinux.conf sed -i 's/APPEND/& rootflags=subvol=@/' $TMPDIR/root/boot/extlinux/extlinux.conf
elif [ -f $TMPDIR/root/boot/boot.ini ]; then elif [ -f $TMPDIR/root/boot/boot.ini ]; then