Overwrite fstab not append initially

This commit is contained in:
Eric Renfro 2024-08-04 21:04:06 -04:00
parent 40fdc97431
commit f9516d9a77
Signed by: psi-jack
SSH key fingerprint: SHA256:1TKB8Z257L8EHK8GWNxKgMhD8a+FAR+f+j3nnlcuNVM

View file

@ -240,9 +240,9 @@ function stage_step() {
#FIXME post stage extraction:
if [[ "$DEBUG" ]]; then
echo "genfstab -U /mnt/gentoo >> /mnt/gentoo/etc/fstab"
echo "genfstab -U /mnt/gentoo > /mnt/gentoo/etc/fstab"
else
genfstab -U /mnt/gentoo >> /mnt/gentoo/etc/fstab
genfstab -U /mnt/gentoo > /mnt/gentoo/etc/fstab
fi
if [[ "$ENCRYPTION" ]]; then
@ -267,7 +267,7 @@ function stage_step() {
arch-chroot /mnt/gentoo emerge --sync
arch-chroot /mnt/gentoo grub-install --efi-directory=/efi
arch-chroot /mnt/gentoo dracut --host-only
#arch-chroot /mnt/gentoo dracut --host-only
arch-chroot /mnt/gentoo grub-mkconfig -o /boot/grub/grub.cfg
}