diskimage-builder/elements/yum
Ian Wienand cb0e0e903d Use dnf to cleanup old kernels
As described in the comment, there is a dnf equivalent of this command
that doesn't require us installing yum-utils (which drags in yum on
dnf-only systems such as f23)

This is a small consequence to this -- due to us not installing
yum-utils some installs will now be completely yum free.  This causes
a breakage in ironic-agent 99-remove-extra-packages where we remove
the yum package.  There is a long-standing bug/feature where missing
packages in a group of packages do not cause yum/dnf to exit with
failure, but uninstalling a single package will.  Because we have made
the systems yum-free, the uninstall of yum can fail in this corner
case.

It has always been like this, so I'm in favour of the "ain't broke"
approach.  To work-around this, I have just put yum into the existing
list of packages to be cleaned up.  I have added a note to the yum
installer taking note of this behaviour for future reference.

Change-Id: I8bbdc07ccdb89a105b4fc70d5a215077c42fcd03
2016-02-08 14:20:56 +11:00
..
bin Use dnf to cleanup old kernels 2016-02-08 14:20:56 +11: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 Reset yum/dnf cache to correct location 2015-10-14 06:36:06 +11:00
pre-install.d Make sure dnf won't autoremove packages that we explicitly installed 2015-09-10 10:43:02 +02: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.