1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-11-22 01:21:34 -05:00

Fixed bugs.

This commit is contained in:
Tommaso Chiti 2021-01-31 20:45:13 +01:00
parent c25f569a4a
commit 17af10cb64

View File

@ -102,7 +102,7 @@ EOF
# Setting up locales. # Setting up locales.
echo "Please insert the locale you use in this format (xx_XX.UTF-8): " echo "Please insert the locale you use in this format (xx_XX.UTF-8): "
read locale read locale
echo $locale > /mnt/etc/locale.gen echo "$locale UTF-8" > /mnt/etc/locale.gen
echo "LANG=\"$locale\"" > /mnt/etc/locale.conf echo "LANG=\"$locale\"" > /mnt/etc/locale.conf
# Setting up keyboard layout. # Setting up keyboard layout.
@ -143,7 +143,7 @@ arch-chroot /mnt /bin/bash -xe <<"EOF"
locale-gen locale-gen
# Generating a new initramfs. # Generating a new initramfs.
mkinitcpio -p mkinitcpio -P
# Installing Grub. # Installing Grub.
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
@ -164,3 +164,8 @@ systemctl enable fstrim.timer --root=/mnt
# Enabling NetworkManager. # Enabling NetworkManager.
echo "Enabling NetworkManager." echo "Enabling NetworkManager."
systemctl enable NetworkManager --root=/mnt systemctl enable NetworkManager --root=/mnt
# Unmounting partitions.
umount -R /mnt
echo "Done."
exit