Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/create_hdd.sh
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-03-15 21:17:04 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2018-03-15 21:17:04 +0100
commitb445d69f041062e4695cb23d656fb8613fcf381c (patch)
tree3d3123d2951072e7c1560e2e0870cee93a3d744c /create_hdd.sh
parent80afdd710922f82171bb9250c33dca18475f42ca (diff)
stage4: building with docu and tests up to help2man
Diffstat (limited to 'create_hdd.sh')
-rwxr-xr-xcreate_hdd.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/create_hdd.sh b/create_hdd.sh
index 38829da..8f65923 100755
--- a/create_hdd.sh
+++ b/create_hdd.sh
@@ -58,6 +58,8 @@ mount -t sysfs sys /sys
mkdir /dev/shm
mount -t tmpfs shm /dev/shm
mount -o remount,rw /
+ip link set up dev lo
+ip addr add 127.0.0.1/8 dev lo
ip link set up dev eth0
ip addr add ${STAGE1_MACHINE_IP}/24 dev eth0
ip route add default via 192.168.1.1 dev eth0
@@ -68,6 +70,11 @@ cat > etc/resolv.conf <<EOF
nameserver 192.168.1.1
EOF
+# have a host name for IPv4 loopback
+cat > etc/hosts <<EOF
+127.0.0.1 localhost.localdomain localhost
+EOF
+
# SSH confiuration: nobody user and host keys, keys for key based login
cat >> etc/group <<EOF