Stop DIB deleting our dpkg cache

Under normal conditions, diskimage-builder removes cached debs to
reduce image size. However, one of the reasons we build our own
images is specifically _because_ we want a primed package cache.
Pass DIB_DISABLE_APT_CLEANUP=1 in the calling environment to disable
this behavior.

Change-Id: Ie279a6fb788bc5ec711ec41183dd78098d4acc22
This commit is contained in:
Jeremy Stanley 2015-07-17 17:42:00 +00:00
parent f889e14fdb
commit 2377df8be6

@ -998,6 +998,7 @@ diskimages:
env-vars:
TMPDIR: /opt/dib_tmp
DIB_IMAGE_CACHE: /opt/dib_cache
DIB_DISABLE_APT_CLEANUP: '1'
- name: devstack-trusty
elements:
- ubuntu
@ -1010,6 +1011,7 @@ diskimages:
env-vars:
TMPDIR: /opt/dib_tmp
DIB_IMAGE_CACHE: /opt/dib_cache
DIB_DISABLE_APT_CLEANUP: '1'
QEMU_IMG_OPTIONS: compat=0.10
- name: devstack-precise
elements:
@ -1023,6 +1025,7 @@ diskimages:
env-vars:
TMPDIR: /opt/dib_tmp
DIB_IMAGE_CACHE: /opt/dib_cache
DIB_DISABLE_APT_CLEANUP: '1'
QEMU_IMG_OPTIONS: compat=0.10
- name: devstack-centos7-dib
elements: