diskimage-builder/diskimage_builder/elements/rpm-distro
Tristan Cacqueray 25964c5c5b rpm-distro: set the contentdir yum var
Since CentOS-7.5, a new yum variable is needed for SIG repositories.
This change replicates the %post task of the centos-release package
to setup the contentdir yum var. This should fix issues when
repository url uses $contentdir and yum fail with:
http://mirror.centos.org/%24contentdir ... [Errno 14] HTTP Error 404 - Not Found

For more details see:

https://lists.centos.org/pipermail/centos-devel/2018-March/016542.html

This change also drops support for fedora without dnf.

Change-Id: I1819a48b94670577b0c5e29b24cebfb20ea07d28
2018-05-14 05:38:37 +00:00
..
cleanup.d Use SELinuxfs to check selinux status 2017-07-26 18:57:25 +02:00
post-install.d Refactor: block-device filesystem creation, mount and fstab 2017-05-12 13:52:02 +02:00
pre-install.d rpm-distro: set the contentdir yum var 2018-05-14 05:38:37 +00:00