File: mini-buildd.prerm

package info (click to toggle)
mini-buildd 2.5.2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 3,636 kB
  • sloc: python: 9,998; sql: 1,597; sh: 1,470; javascript: 98; lisp: 90; cpp: 70; makefile: 69
file content (15 lines) | stat: -rw-r--r-- 469 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
set -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 --remove-system-artifacts" || true
fi

#DEBHELPER#

exit 0