prerm is in mini-buildd 1.0.0~rc.5.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
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 16 17 18 19 | #!/bin/sh -e
if [ "${1}" = "remove" ]; then
# Prepared Chroot models may have made extra changes to the
# system. We need to properly run 'unprepare' to all of them
# to not leave artefacts (i.e., /etc/schroot/chroot.d/*.conf
# plus backend-related cruft like LVM setups).
# (We cannot do it in postrm/purge as we need mini-buildd still installed for that.)
su mini-buildd -c "/usr/sbin/mini-buildd --foreground --verbose --remove-system-artifacts" || true
fi
# Automatically added by dh_installinit
if [ -x "/etc/init.d/mini-buildd" ] || [ -e "/etc/init/mini-buildd.conf" ]; then
invoke-rc.d mini-buildd stop || exit $?
fi
# End automatically added section
exit 0
|