diskimage-builder/elements/yum
Abel Lopez 570ecf16a5 Set and export DIB_RELEASE for centos7
The default value was set in the centos7 element, but not
exported, which caused issues in rpm-distro. Also changed
a test in rpm-distro to only check for DIB_RELEASE > 22
if it's fedora.

Closes-Bug: #1477172

Change-Id: Ib6f4227411c2e8f1965c3b78bc318512c59a7876
2015-08-04 08:35:20 -07:00
..
bin Cleanup yum downloading 2015-07-20 09:08:06 +10:00
cleanup.d Make $DIB_YUM_REPO_CONF accept a list of repo files 2015-05-22 19:37:29 -07:00
extra-data.d Make $DIB_YUM_REPO_CONF accept a list of repo files 2015-05-22 19:37:29 -07:00
post-install.d Set and export DIB_RELEASE for centos7 2015-08-04 08:35:20 -07:00
pre-install.d Set and export DIB_RELEASE for centos7 2015-08-04 08:35:20 -07:00
root.d Standarise tracing for scripts 2015-02-12 10:41:32 +11:00
README.rst Make $DIB_YUM_REPO_CONF accept a list of repo files 2015-05-22 19:37:29 -07:00

===
yum
===
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.

Custom yum repository configurations can also be applied by defining
`DIB_YUM_REPO_CONF` to a space separated list of repo configuration files. The
files will be copied to /etc/yum.repos.d/ during the image build, and then
removed at the end of the build. Each repo file should be named differently to
avoid a filename collision.