2022-05-25 14:02:09 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
export LC_ALL=C.UTF-8
|
|
|
|
ret=0
|
|
|
|
{{ CMD }} --mode=root --variant=apt --customize-hook='chroot "$1" sh -c "exit 1"' {{ DIST }} /tmp/debian-chroot {{ MIRROR }} || ret=$?
|
|
|
|
rm -r /tmp/debian-chroot
|
|
|
|
if [ "$ret" = 0 ]; then
|
2024-10-11 16:29:25 +00:00
|
|
|
echo expected failure but got exit $ret >&2
|
|
|
|
exit 1
|
2022-05-25 14:02:09 +00:00
|
|
|
fi
|