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