GitHub CI: change build system to meson
[tinc] / .ci / test / prepare.sh
index 8a01a3f..82f103f 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-set -eu
+set -eux
 
 if [ "$(id -u)" != 0 ] && sudo --preserve-env --non-interactive true; then
   echo >&2 "sudo already configured"
@@ -12,3 +12,8 @@ useradd --user-group build
 echo 'build ALL=(ALL) NOPASSWD: ALL' >/etc/sudoers.d/build
 chmod 440 /etc/sudoers.d/build
 visudo --check
+
+if [ -n "${HOST:-}" ]; then
+  update-binfmts --enable
+  rm -f /dev/net/tun
+fi