The "ubuntu" target had a post-install 99-autoremove task that removed unnecessary dependency packages, but the "ubuntu-minimal" target does not. This patch moves the 99-autoremove post-install task from the "ubuntu" target to the "ubuntu-common" target so that both will run an autoremove at the end of the image build. For the Octavia amphora image, this saved about 1GB in the image by removing build only package dependencies. Closes-Bug: #2012406 Change-Id: I4592e3bd502045fa89203c075d3ea8f632e77177
ubuntu
Use Ubuntu cloud images as the baseline for built disk images.
Overrides:
- To use a non-default URL for downloading base Ubuntu cloud images, use the environment variable
DIB_CLOUD_IMAGES- To download a non-default release of Ubuntu cloud images, use the environment variable
DIB_RELEASE. This element will export theDIB_RELEASEvariable.- Use
DIB_DISTRIBUTION_MIRRORto override thesources.listwith an alternative mirror- Setting
DIB_DISTRIBUTION_MIRROR_UBUNTU_IGNOREto an extended-regexp (i.e. the argument to the=~bash comparitor) which, when matched, will not set that line to theDIB_DISTRIBUTION_MIRROR. For example, if your local mirror does not mirror the universe and multiverse components, set this to(universe|multiverse)- Setting
DIB_DISTRIBUTION_MIRROR_UBUNTU_INSECUREupdates apt settings to allow insecure/unuthenticated repositories.- Setting
DIB_OFFLINEwill prevent to download again the source image if is already present in to $DIB_IMAGE_CACHE path.- Setting
DIB_LOCAL_IMAGEto use a image from a local source (full path and file name) and not download image from internet. Local source for release Trusty have to be tar.gz format. For other more recent release get the squashfs image.