diskimage-builder/elements/yum
James Slagle 70880780f0 Allow injecting arbitrary yum repo configuration
Allows specifying the path to a yum repo configuration file to be used
during the image build process. The repo configuration file is removed
at the end of the build. This is useful in that it allows using any
arbitrary repo configuration during an image build.

Change-Id: I7d5c67d74a0bb4722ffc60aacfd9fa7e80fb59d5
2014-12-04 15:08:57 -05:00
..
bin Merge "Avoid to install a blank list of packages" 2014-07-30 01:59:45 +00:00
cleanup.d Allow injecting arbitrary yum repo configuration 2014-12-04 15:08:57 -05:00
extra-data.d Allow injecting arbitrary yum repo configuration 2014-12-04 15:08:57 -05:00
post-install.d Remove use of sudo from yum pre and post elements 2014-11-28 11:01:40 -05:00
pre-install.d Remove use of sudo from yum pre and post elements 2014-11-28 11:01:40 -05:00
root.d Use DIB_IMAGE_CACHE everywhere 2014-10-05 13:58:32 -07:00
README.md Allow injecting arbitrary yum repo configuration 2014-12-04 15:08:57 -05:00

Provide yum specific image building glue.

RHEL/Fedora/CentOS and other yum based distributions need specific yum customizations.

Customizations include caching of downloaded yum packages outside of the build chroot so that they can be reused by subsequent image builds. The cache increases image building speed when building multiple images, especially on slow connections. This is more effective than using an HTTP proxy as a yum cache since the same rpm from different mirrors is often requested.

A custom yum repository configuration can also be applied by defining DIB_YUM_REPO_CONF to the path to a repo configuration file. The file will be copied to /etc/yum.repos.d/dib-yum-repo-conf.repo during the image build, and then removed at the end of the build.