Updates to mirror new repository structure.
[james-home-etc.git] / .pbuilder.d / E10fai-base-image
blob8a2709d41398009ff14d39ca9692ff5bf7aa7041
1 #!/bin/bash
3 # If we are building a fai base image, remove build-essentail, dpkg-dev, eatmydata
4 [ ! -z ${FAIBASE} ] || exit 0
6 PKGREMOVE="build-essential dpkg-dev eatmydata"
7 apt-get --purge purge -y "${APTGETOPT[@]}" ${PKGREMOVE}
8 apt-get --purge autoremove -y "${APTGETOPT[@]}"
10 # remove policy-rc.d to deamons start properly ;)
11 rm /usr/sbin/policy-rc.d
13 # remove /etc/apt/apt.conf.d/15pbuilder
14 [ -r /etc/apt/apt.conf.d/15pbuilder ] && rm /etc/apt/apt.conf.d/15pbuilder
16 # clean cache
17 apt-get clean