/etc/piuparts/scripts/post_setup_minimize is in piuparts 0.77.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #!/bin/sh
set -e
# only while creating the tarball
if [ "${PIUPARTS_OBJECTS%%=*}" = "dpkg" ]
then
case $PIUPARTS_DISTRIBUTION in
jessie)
dpkg --purge gcc-4.8-base
;;
sid|stretch)
dpkg --purge lsb-base tzdata
;;
esac
fi
|