2022-05-25 14:02:09 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
export LC_ALL=C.UTF-8
|
|
|
|
if [ ! -e /mmdebstrap-testenv ]; then
|
|
|
|
echo "this test modifies the system and should only be run inside a container" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
2022-06-04 06:43:35 +00:00
|
|
|
echo 0 > /proc/sys/fs/binfmt_misc/qemu-aarch64
|
2022-05-25 14:02:09 +00:00
|
|
|
ret=0
|
|
|
|
{{ CMD }} --mode={{ MODE }} --variant=apt --architectures=arm64 {{ DIST }} /tmp/debian-chroot.tar {{ MIRROR }} || ret=$?
|
|
|
|
if [ "$ret" = 0 ]; then
|
|
|
|
echo expected failure but got exit $ret >&2
|
|
|
|
exit 1
|
|
|
|
fi
|