diskimage-builder/elements/dpkg/finalise.d/99-clean-up-cache
Gregory Haynes d2f4c3b843 Allow disabling apt-get clean
Sometimes users want to maintain the apt cache in their images.

Change-Id: Id49a04896cf3eeaf1557f1d644e4d8ba64716392
2015-03-06 17:07:29 +00:00

13 lines
216 B
Bash
Executable File

#!/bin/bash
# Do an apt-get clean. This will free some space.
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
if [ "${DIB_DISABLE_APT_CLEANUP:-0}" != "1" ]; then
apt-get clean
fi