summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--install.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index 2020420..70f5ef0 100644
--- a/install.sh
+++ b/install.sh
@@ -272,6 +272,13 @@ echo "export EDITOR=vim" >> /mnt/etc/profile
# Set hostname
echo "${hostname}" > /mnt/etc/hostname
+# Setup localhost
+tee -a /mnt/etc/hosts <<EOF
+127.0.0.1 localhost
+::1 localhost
+127.0.1.1 ${hostname}.localdomain ${hostname}
+EOF
+
# Set root password
artix-chroot /mnt bash -c "echo root:artix | chpasswd"