Generate fstab from /mnt and use label to prevent incorrect UUID issue.

UUIDs always differ, use labels since we utilize them in formatting
This commit is contained in:
Austin Horstman 2022-02-20 20:56:51 -06:00
parent f78e8e17c1
commit 28dcb64e8d
2 changed files with 6 additions and 5 deletions

View File

@ -147,6 +147,12 @@ pacstrap /mnt base base-devel linux linux-firmware vim nano sudo archlinux-keyri
echo "keyserver hkp://keyserver.ubuntu.com" >> /mnt/etc/pacman.d/gnupg/gpg.conf
cp -R ${SCRIPT_DIR} /mnt/root/ArchTitus
cp /etc/pacman.d/mirrorlist /mnt/etc/pacman.d/mirrorlist
genfstab -L /mnt >> /mnt/etc/fstab
echo "
Generated /etc/fstab:
"
cat /mnt/etc/fstab
echo -ne "
-------------------------------------------------------------------------
GRUB BIOS Bootloader Install & Check

View File

@ -16,11 +16,6 @@ Final Setup and Configurations
GRUB EFI Bootloader Install & Check
"
source ${HOME}/ArchTitus/configs/setup.conf
genfstab -U -p / >> /etc/fstab
echo "
Generated /etc/fstab:
"
cat /etc/fstab
if [[ -d "/sys/firmware/efi" ]]; then
grub-install --efi-directory=/boot ${DISK}