diff --git a/install.sh b/install.sh index 42d2ea4..acdc821 100755 --- a/install.sh +++ b/install.sh @@ -59,14 +59,11 @@ if [[ -n $username ]]; then read -r -p "Please enter a password for the user account: " password fi -# Setting up locales. +# Choose locales. read -r -p "Please insert the locale you use in this format (xx_XX): " locale -echo "$locale.UTF-8 UTF-8" > /mnt/etc/locale.gen -echo "LANG=$locale.UTF-8" > /mnt/etc/locale.conf -# Setting up keyboard layout. +# Choose keyboard layout. read -r -p "Please insert the keyboard layout you use: " kblayout -echo "KEYMAP=$kblayout" > /mnt/etc/vconsole.conf @@ -238,6 +235,14 @@ cat > /mnt/etc/hosts < /mnt/etc/locale.gen +echo "LANG=$locale.UTF-8" > /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 + # Configuring /etc/mkinitcpio.conf echo "Configuring /etc/mkinitcpio for ZSTD compression and LUKS hook." sed -i 's,#COMPRESSION="zstd",COMPRESSION="zstd",g' /mnt/etc/mkinitcpio.conf