summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorBlake Romero <blake@blkrom.com>2024-09-26 11:15:56 +0100
committerBlake Romero <blake@blkrom.com>2024-09-26 11:15:56 +0100
commitdb04cf948e6cc80b0de9af2d7248a5c38e63fa33 (patch)
tree2db256c5fedbb300d3715be90d675ddcecb292af /install.sh
parent8b75a486d76c5b1ad9f28e656042145cd3fe1f0d (diff)
Add localhost setup
Diffstat (limited to 'install.sh')
-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"