From 17af10cb64cceedcdf3cac9a1bced50e3a98d054 Mon Sep 17 00:00:00 2001 From: Tommaso Chiti Date: Sun, 31 Jan 2021 20:45:13 +0100 Subject: [PATCH] Fixed bugs. --- easy-arch.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/easy-arch.sh b/easy-arch.sh index 1dff869..0a357f6 100644 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -102,7 +102,7 @@ EOF # Setting up locales. echo "Please insert the locale you use in this format (xx_XX.UTF-8): " read locale -echo $locale > /mnt/etc/locale.gen +echo "$locale UTF-8" > /mnt/etc/locale.gen echo "LANG=\"$locale\"" > /mnt/etc/locale.conf # Setting up keyboard layout. @@ -143,7 +143,7 @@ arch-chroot /mnt /bin/bash -xe <<"EOF" locale-gen # Generating a new initramfs. - mkinitcpio -p + mkinitcpio -P # Installing Grub. grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB @@ -163,4 +163,9 @@ systemctl enable fstrim.timer --root=/mnt # Enabling NetworkManager. echo "Enabling NetworkManager." -systemctl enable NetworkManager --root=/mnt \ No newline at end of file +systemctl enable NetworkManager --root=/mnt + +# Unmounting partitions. +umount -R /mnt +echo "Done." +exit \ No newline at end of file