2022-05-25 14:02:09 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
export LC_ALL=C.UTF-8
|
2023-03-05 18:25:13 +00:00
|
|
|
export SOURCE_DATE_EPOCH={{ SOURCE_DATE_EPOCH }}
|
|
|
|
|
|
|
|
trap "rm -f /tmp/debian-chroot.tar" EXIT INT TERM
|
|
|
|
|
2023-03-13 12:21:18 +00:00
|
|
|
# we use variant standard in verbose mode to see the maximum number of packages
|
|
|
|
# that was chosen in case of USE_HOST_APT_CONFIG=yes
|
2024-10-11 16:29:25 +00:00
|
|
|
case {{ VARIANT }} in standard) : ;; *) exit 1 ;; esac
|
2023-03-05 18:25:13 +00:00
|
|
|
|
|
|
|
{{ CMD }} --variant={{ VARIANT }} --debug {{ DIST }} /tmp/debian-chroot.tar {{ MIRROR }}
|
|
|
|
|
|
|
|
cmp ./cache/mmdebstrap-{{ DIST }}-{{ VARIANT }}.tar /tmp/debian-chroot.tar \
|
2024-10-11 16:29:25 +00:00
|
|
|
|| diffoscope ./cache/mmdebstrap-{{ DIST }}-{{ VARIANT }}.tar /tmp/debian-chroot.tar
|