diff --git a/scripts/nspawn-support.sh b/scripts/nspawn-support.sh index 5807c1e..0afb5de 100755 --- a/scripts/nspawn-support.sh +++ b/scripts/nspawn-support.sh @@ -6,5 +6,5 @@ dir="$2" if [ "$cmd" == "create" ]; then debootstrap --include=systemd-container --include=libpython3.6 --include=racket --components=main,universe bionic "$dir" http://archive.ubuntu.com/ubuntu/ elif [ "$cmd" == "boot" ]; then - systemd-nspawn -D "$dir" --bind "$PWD:/router" -- /bin/bash -c "cd /router && scripts/run-tests.sh /router/build; bash" + systemd-nspawn -D "$dir" --bind "$PWD:/router" -- /bin/bash -c "cd /router && scripts/run-tests.sh /router/build" fi diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh index ebff23f..7dd69cb 100755 --- a/scripts/run-tests.sh +++ b/scripts/run-tests.sh @@ -1,4 +1,7 @@ #!/bin/bash +rm /etc/resolv.conf +echo "nameserver 8.8.8.8" > /etc/resolv.conf +apt install libpython3.6 cd $1 ./sim --router ../router milestone