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 }}
|
2022-11-14 10:59:57 +00:00
|
|
|
if dpkg --compare-versions "$(dpkg-query -W -f='${Version}' libpam-runtime)" le 1.5.2-5; then
|
|
|
|
# https://bugs.debian.org/1022952
|
|
|
|
exit 0
|
|
|
|
fi
|
2022-10-27 12:22:53 +00:00
|
|
|
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
|
|
|
|
for INCLUDE in '' 'systemd-sysv'; do
|
|
|
|
for MODE in root chrootless; do
|
|
|
|
{{ CMD }} --mode=$MODE --variant={{ VARIANT }} --hook-dir=./hooks/merged-usr \
|
|
|
|
${INCLUDE:+--include="$INCLUDE"} \
|
|
|
|
{{ DIST }} "/tmp/$MODE.tar" {{ MIRROR }}
|
|
|
|
done
|
|
|
|
cmp /tmp/root.tar /tmp/chrootless.tar
|
|
|
|
rm /tmp/chrootless.tar /tmp/root.tar
|
|
|
|
done
|