build /etc/hosts
This commit is contained in:
parent
9d1ff3bbcb
commit
194dc576f1
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue