283c9705c0
Make sure we reset the yum/dnf cache to /var/cache/${YUM}, not just /var/cache/yum This was resulting in the F22 fedora-minimal image being larger than the base-image. Because F22 fedora-minimal does some installs with dnf when bootstrapping the chroot before we set "cachedir=" to the bind-mounted external cache, we have "/var/cache/dnf" created and and populated with the package meta-data, etc. When we globally point dnf to /var/cache/yum here, we effectively orphan the /var/cache/dnf created in those first steps. dnf doesn't care, but we end up with two copies of all the package metadata, etc in "/var/cache/dnf" & "/var/cache/yum". This also cleans up the sed a bit, by just replacing the lines. Change-Id: Icc98fe30c34cb941aed4b987647ab67ac34af15a |
||
---|---|---|
.. | ||
bin | ||
cleanup.d | ||
extra-data.d | ||
post-install.d | ||
pre-install.d | ||
root.d | ||
README.rst |
=== 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.