From 20f08bb9f6ae0fccef45eb08684e2be9483b15eb Mon Sep 17 00:00:00 2001 From: Tommaso Chiti Date: Mon, 1 Feb 2021 07:02:41 +0100 Subject: [PATCH] Better --- easy-arch.sh | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) 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