1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-11-21 17:11:34 -05:00
This commit is contained in:
Tommaso Chiti 2021-01-31 15:29:22 +01:00
parent 488c4b511e
commit 1e321827dc

View File

@ -78,4 +78,23 @@ pacstrap /mnt base linux linux-firmware btrfs-progs neovim networkmanager
# Fstab generation. # Fstab generation.
echo "Generating a new fstab." echo "Generating a new fstab."
genfstab -U /mnt >> /mnt/etc/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