From 1e321827dc07647dbdbe3a8228eabb90f7783a90 Mon Sep 17 00:00:00 2001 From: Tommaso Chiti Date: Sun, 31 Jan 2021 15:29:22 +0100 Subject: [PATCH] Locales. --- easy-arch.sh | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/easy-arch.sh b/easy-arch.sh index 1fbe98a..73c5f4a 100644 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -78,4 +78,23 @@ pacstrap /mnt base linux linux-firmware btrfs-progs neovim networkmanager # Fstab generation. echo "Generating a new fstab." -genfstab -U /mnt >> /mnt/etc/fstab \ No newline at end of file +genfstab -U /mnt >> /mnt/etc/fstab + +# Setting hostname. +echo "Please enter the hostname: " +read hostname +echo $hostname > /mnt/etc/hostname + +# Setting hosts file. +echo "Setting hosts file." +cat > /mnt/etc/hosts < /mnt/etc/locale.gen +echo "LANG=\"$locale\"" > /mnt/etc/locale.conf \ No newline at end of file