build /etc/hosts

This commit is contained in:
tengel 2024-03-20 11:32:49 -05:00
parent 9d1ff3bbcb
commit 194dc576f1

View file

@ -238,11 +238,16 @@ KEYMAP="${ARCH_KM}"
FONT="${ARCH_VF}"
EOF
# time/date
# time/date/hostname
logact ln -s /usr/share/zoneinfo/${ARCH_TZ} /etc/localtime
logact hwclock --systohc --utc
echo ${HOSTNAME} > /etc/hostname
logact hostnamectl set-hostname ${HOSTNAME}
cat << EOF >> /etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.1.1 ${HOSTNAME}
EOF
touch /root/.archmate/stage-1.done
else