index : bootstrap32 | |
Archlinux32 bootstrap scripts | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-03-15 21:17:04 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-03-15 21:17:04 +0100 |
commit | b445d69f041062e4695cb23d656fb8613fcf381c (patch) | |
tree | 3d3123d2951072e7c1560e2e0870cee93a3d744c /create_hdd.sh | |
parent | 80afdd710922f82171bb9250c33dca18475f42ca (diff) |
-rwxr-xr-x | create_hdd.sh | 7 |
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 |