diskimage-builder/elements/fedora
Dan Prince 131fb6e4db Fedora: Add support for configuring Yum mirrors
Updates the fedora element so that DIB_DISTRIBUTION_MIRROR can
be used to configure a custom Yum mirror on Fedora. This
implementation replaces the baseurl in each of the default
Fedora Yum .repo files so that a custom mirror URL/path
can be supplied. The URL should point to the directory
where the updates and release directories exist. Example:

  http://download.fedoraproject.org/pub/fedora/linux

As part of this change we also remove any existing
metalink settings in the .repo files to cover the case
where an end user runs their own createrepo command
to create the mirror... which means your metadata won't match that
of the normal Fedora mirrors and your baseurl won't get used.

Change-Id: I1a49a2941b1cc489e91a72b87430393cd32e865d
2014-05-06 10:11:26 -04:00
..
install.d set -e all the things 2014-04-25 17:38:51 -05:00
pre-install.d Fedora: Add support for configuring Yum mirrors 2014-05-06 10:11:26 -04:00
root.d Use redhat-common in fedora element 2014-03-17 16:14:41 -05:00
element-deps Alphabetize all element-deps 2014-03-26 15:23:18 -05:00
element-provides Use provides to note an element provides an OS 2014-04-10 14:42:04 +01:00
README.md Fedora: Add support for configuring Yum mirrors 2014-05-06 10:11:26 -04:00
source-repository-fedora On Fedora, use Linux Foundation bzr lsb_release 2013-09-04 10:16:49 +12:00

Use Fedora cloud images as the baseline for built disk images.

If you wish to use a Fedora Yum mirror you can set DIB_DISTRIBUTION_MIRROR before running bin/disk-image-create. Example:

DIB_DISTRIBUTION_MIRROR=http://download.fedoraproject.org/pub/fedora/linux

This URL should point to the directory containing the releases/updates/ development/and extras directories.

For further details see the redhat-common README.