From 26cdbbd06f6459379f45a24a520bd39147e28b49 Mon Sep 17 00:00:00 2001 From: Welteam <8932313+Welteam@users.noreply.github.com> Date: Sat, 28 Jan 2023 00:31:21 +0100 Subject: [PATCH] Fix regression caused by last commit (#23) Configure locales after mount of filesystem Signed-off-by: Welteam <8932313+Welteam@users.noreply.github.com> --- install.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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