2022-10-27 12:22:53 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
export LC_ALL=C.UTF-8
|
|
|
|
export SOURCE_DATE_EPOCH={{ SOURCE_DATE_EPOCH }}
|
|
|
|
trap "rm -f /tmp/chrootless.tar /tmp/root.tar" EXIT INT TERM
|
|
|
|
# we need --hook-dir=./hooks/merged-usr because usrmerge does not understand
|
|
|
|
# DPKG_ROOT
|
2023-01-16 07:14:36 +00:00
|
|
|
for INCLUDE in '' 'apt' 'apt,build-essential' 'systemd-sysv'; do
|
2024-10-11 16:29:25 +00:00
|
|
|
for MODE in root chrootless; do
|
|
|
|
{{ CMD }} --mode=$MODE --variant={{ VARIANT }} --hook-dir=./hooks/merged-usr \
|
|
|
|
${INCLUDE:+--include="$INCLUDE"} --skip=check/chrootless \
|
|
|
|
{{ DIST }} "/tmp/$MODE.tar" {{ MIRROR }}
|
|
|
|
done
|
|
|
|
cmp /tmp/root.tar /tmp/chrootless.tar || diffoscope /tmp/root.tar /tmp/chrootless.tar
|
|
|
|
rm /tmp/chrootless.tar /tmp/root.tar
|
2022-10-27 12:22:53 +00:00
|
|
|
done
|