1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-11-21 17:11:34 -05:00

Use Fedora's /etc/hosts

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2024-10-25 03:07:00 -07:00 committed by GitHub
parent 870ccdef4d
commit 3821fe08f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -386,9 +386,13 @@ echo "$hostname" > /mnt/etc/hostname
## Setting hosts file ## Setting hosts file
echo 'Setting hosts file.' echo 'Setting hosts file.'
echo "127.0.0.1 localhost echo '# Loopback entries; do not change.
::1 localhost # For historical reasons, localhost precedes localhost.localdomain:
127.0.1.1 $hostname.localdomain $hostname" > /mnt/etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
# See hosts(5) for proper format and other examples:
# 192.168.1.10 foo.example.org foo
# 192.168.1.13 bar.example.org bar' > /mnt/etc/hosts
## Setup locales ## Setup locales
echo "$locale.UTF-8 UTF-8" > /mnt/etc/locale.gen echo "$locale.UTF-8 UTF-8" > /mnt/etc/locale.gen