From 44f5b7af6444173b16d1495023d80aaef8a9c47a Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 18 Feb 2018 21:40:12 +0100 Subject: work on stage 2 --- create_hdd.sh | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'create_hdd.sh') diff --git a/create_hdd.sh b/create_hdd.sh index 3170a64..94df476 100755 --- a/create_hdd.sh +++ b/create_hdd.sh @@ -53,7 +53,7 @@ mount -t devpts devpts /dev/pts mount -t sysfs sys /sys mount -o remount,rw / ip link set up dev eth0 -ip addr add 192.168.1.127/24 dev eth0 +ip addr add ${STAGE1_MACHINE_IP}/24 dev eth0 ip route add default via 192.168.1.1 dev eth0 /usr/sbin/sshd exec /usr/bin/bash @@ -81,6 +81,21 @@ chmod 0400 etc/ssh/ssh_host_*_key mkdir root/.ssh cp "$HOME/.ssh/id_rsa.pub" root/.ssh/authorized_keys +# install a build user and build directory +cat >> etc/group <> etc/passwd < root/test.c <