diff --git a/easy-arch.sh b/easy-arch.sh index 0c06362..0cdd43a 100644 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -87,10 +87,18 @@ echo "Generating a new fstab." genfstab -U /mnt >> /mnt/etc/fstab # Setting hostname. -echo "Please enter the hostname: " -read hostname +read -r -p "Please enter the hostname: " hostname echo $hostname > /mnt/etc/hostname +# Setting up locales. +read -r -p "Please insert the locale you use in this format (xx_XX.UTF-8): " locale +echo "$locale UTF-8" > /mnt/etc/locale.gen +echo "LANG=\"$locale\"" > /mnt/etc/locale.conf + +# Setting up keyboard layout. +read -r -p "Please insert the keyboard layout you use: " kblayout +echo "KEYMAP=\"$kblayout\"" > /mnt/etc/vconsole.conf + # Setting hosts file. echo "Setting hosts file." cat > /mnt/etc/hosts < /mnt/etc/hosts < /mnt/etc/locale.gen -echo "LANG=\"$locale\"" > /mnt/etc/locale.conf - -# Setting up keyboard layout. -echo "Please insert the keyboard layout you use: " -read kblayout -echo "KEYMAP=\"$kblayout\"" > /mnt/etc/vconsole.conf - # Configuring /etc/mkinitcpio.conf echo "Configuring /etc/mkinitcpio for ZSTD compression, BTRFS and LUKS hook." sed -i -e 's,BINARIES=(),BINARIES=(/usr/bin/btrfs),g' /mnt/etc/mkinitcpio.conf