diskimage-builder/elements/dpkg
Endre Karlson ccce52fd21 Cleanup apt cache after grub install
Grub installation happens in finalize.d so cleanup should be done after this.

This reapplies I6322b8b529e31fd1b7251dd9e07cc85f442f7e81 after the revert,
but working.

Change-Id: Ie1873e64d407552da37a8dbedc13c3adbf79c085
2014-07-30 15:04:12 +01:00
..
bin dpkg: support pkg-map in bin/install-packages 2014-06-20 16:02:28 -04:00
cleanup.d Revert "Cleanup apt cache after grub install" 2014-07-23 21:56:40 -04:00
extra-data.d Remove All Rights Reserved 2014-04-25 11:25:10 -07:00
finalise.d Cleanup apt cache after grub install 2014-07-30 15:04:12 +01:00
post-install.d Cleanup apt cache after grub install 2014-07-30 15:04:12 +01:00
pre-install.d Name 01-install-bin uniquely 2014-06-11 08:16:41 -04:00
root.d Correction: if then statement code style. 2014-07-07 03:43:15 -07:00
element-deps Standardise manifest creation and retrieval 2014-04-10 12:25:13 +01:00
README.md dpkg: local cache for .deb files 2014-06-10 17:20:37 +02:00

Provide dpkg specific image building glue.

The ubuntu element needs customisations at the start and end of the image build process that do not apply to RPM distributions, such as using the host machine HTTP proxy when installing packages. These customisations live here, where they can be used by any dpkg based element.

The dpkg specific version of install-packages is also kept here.

Environment Variables

  • DIB_ADD_APT_KEYS: If an extra or updated apt key is needed then define DIB_ADD_APT_KEYS with the path to a folder. Any key files inside will be added to the key ring before any apt-get commands take place.
  • DIB_APT_LOCAL_CACHE: You can use this variable to disable the internal cache of the /var/cache/apt/archives directory by setting it to 0. The default is to bind mount the ~/.cache/image-create/apt/$DISTRO_NAME directory in /var/cache/apt/archives, this to cache the .deb files downloaded during the image creation.