| 1 |
#!/bin/sh |
| 2 |
set -e -u -x |
| 3 |
|
| 4 |
# This script is intended to be called from github hosted runners only. |
| 5 |
|
| 6 |
exec sudo chroot /chroot setpriv --reuid "$(id -u)" --regid "$(id -g)" --init-groups \ |
| 7 |
/bin/sh -e -u -x -c 'cd "$1"; shift; exec sh -e -u -x "$@"' -- "$(pwd)" "$@" |