mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
Locales.
This commit is contained in:
parent
488c4b511e
commit
1e321827dc
1 changed files with 20 additions and 1 deletions
19
easy-arch.sh
19
easy-arch.sh
|
|
@ -79,3 +79,22 @@ pacstrap /mnt base linux linux-firmware btrfs-progs neovim networkmanager
|
|||
# Fstab generation.
|
||||
echo "Generating a new fstab."
|
||||
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 <<EOF
|
||||
127.0.0.1 localhost
|
||||
::1 localhost
|
||||
127.0.1.1 $hostname.localdomain $hostname
|
||||
EOF
|
||||
|
||||
# Setting up locales.
|
||||
echo "Please insert the locale you use in this format (xx_XX.UTF-8): "
|
||||
read locale
|
||||
echo $locale > /mnt/etc/locale.gen
|
||||
echo "LANG=\"$locale\"" > /mnt/etc/locale.conf
|
||||
Loading…
Add table
Add a link
Reference in a new issue