From 030d995be859f7b7ffa87d0d1e73d71d0a24978e Mon Sep 17 00:00:00 2001 From: TommyTran732 <57488583+tommytran732@users.noreply.github.com> Date: Fri, 9 Apr 2021 18:10:55 -0400 Subject: [PATCH] Update easy-arch.sh --- easy-arch.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/easy-arch.sh b/easy-arch.sh index 253d2de..0f0ac5a 100644 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -90,6 +90,7 @@ mount $BTRFS /mnt # Creating BTRFS subvolumes. echo "Creating BTRFS subvolumes." btrfs su cr /mnt/@ &>/dev/null +btrfs su cr /mnt/@boot &>/dev/null btrfs su cr /mnt/@home &>/dev/null btrfs su cr /mnt/@snapshots &>/dev/null btrfs su cr /mnt/@var_log &>/dev/null @@ -99,12 +100,13 @@ btrfs su cr /mnt/@swap &>/dev/null umount /mnt echo "Mounting the newly created subvolumes." mount -o ssd,noatime,space_cache,compress=zstd,subvol=@ $BTRFS /mnt -mkdir -p /mnt/{home,.snapshots,/var/log,swap,boot} +mkdir -p /mnt/{home,.snapshots,/var/log,swap,boot,/boot/efi} +mount -o ssd,noatime,space_cache.compress=zstd,subvol=@boot $BTRFS /mnt/boot mount -o ssd,noatime,space_cache.compress=zstd,subvol=@home $BTRFS /mnt/home mount -o ssd,noatime,space_cache,compress=zstd,subvol=@snapshots $BTRFS /mnt/.snapshots mount -o ssd,noatime,space_cache,nodatacow,subvol=@var_log $BTRFS /mnt/var/log mount -o nodatacow,subvol=@swap $BTRFS /mnt/swap -mount $ESP /mnt/boot +mount $ESP /mnt/boot/efi # Pacstrap (setting up a base sytem onto the new root). echo "Installing the base system (it may take a while)." @@ -195,7 +197,7 @@ arch-chroot /mnt /bin/bash -e </dev/null + grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB &>/dev/null # Creating grub config file. echo "Creating GRUB config file."