mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-21 17:11:34 -05:00
Update easy-arch.sh
This commit is contained in:
parent
23da7d50de
commit
030d995be8
@ -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 <<EOF
|
||||
|
||||
# Installing GRUB.
|
||||
echo "Installing GRUB on /boot."
|
||||
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB &>/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."
|
||||
|
Loading…
Reference in New Issue
Block a user