From 292a669224ca18eda335016752ac8296535227cb Mon Sep 17 00:00:00 2001 From: Tommaso Chiti Date: Sun, 7 Feb 2021 09:45:21 +0100 Subject: [PATCH] Improving code. --- easy-arch.sh | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/easy-arch.sh b/easy-arch.sh index f277a4b..524cba6 100644 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -50,7 +50,7 @@ echo "Creating LUKS Container for the root partition." cryptsetup --type luks1 luksFormat $Cryptroot echo "Opening the newly created LUKS Container." cryptsetup open $Cryptroot cryptroot -BTRFS=/dev/mapper/cryptroot +BTRFS="/dev/mapper/cryptroot" # Formatting the LUKS Container as BTRFS. echo "Formatting the LUKS container as BTRFS." @@ -80,7 +80,7 @@ mount $ESP /mnt/boot echo "Installing the base system (it may take a while)." pacstrap /mnt base linux linux-firmware btrfs-progs grub grub-btrfs efibootmgr snapper sudo neovim networkmanager &>/dev/null -# Fstab generation. +# Generating /etc/fstab. echo "Generating a new fstab." genfstab -U /mnt >> /mnt/etc/fstab @@ -141,7 +141,7 @@ else fi # Configuring the system. -arch-chroot /mnt /bin/bash -e <<"EOF" +arch-chroot /mnt /bin/bash -e </dev/null -# Enabling NetworkManager. +# Enabling NetworkManager service. echo "Enabling NetworkManager." systemctl enable NetworkManager --root=/mnt &>/dev/null -# Enabling Snapper. +# Enabling Snapper automatic snapshots. echo "Enabling Snapper." systemctl enable snapper-timeline.timer --root=/mnt &>/dev/null systemctl enable snapper-cleanup.timer --root=/mnt &>/dev/null -# Unmounting partitions. -echo "Unmounting /mnt." -umount -R /mnt -echo "Done, you may now wish to reboot." -exit +echo "Done, you may now wish to reboot (further changes can be done by chrooting into /mnt)." +exit \ No newline at end of file