diskimage-builder/diskimage_builder/elements/centos
Jeffrey Zhang 581ffa023b Support non-x86_64 DIB_DISTRIBUTION_MIRROR variable for CentOS 7
Other architectures are stored under "altarch" for CentOS 7, update
the match.

Convert the delimiters to "," to avoid a subtle problem with "|" --
POSIX states

  Within the BRE and the replacement, the BRE delimiter itself can be
  used as a literal character if it is preceded by a backslash.

So "s|\(foo\|bar\)|moo|" doesn't do what you might think; the inner
pipe becomes a literal | and this will *not* match "foo" or "bar".

Change-Id: Ic1642325e3a59a10453c356d8d839ce649812af8
2020-07-20 10:33:01 +10:00
..
environment.d Add CentOS 8 support 2020-02-19 10:44:56 +01:00
pre-install.d Support non-x86_64 DIB_DISTRIBUTION_MIRROR variable for CentOS 7 2020-07-20 10:33:01 +10:00
root.d Download latest CentOS cloud image 2020-06-22 11:03:36 +02:00
test-elements/8-build-succeeds Add CentOS 8 support 2020-02-19 10:44:56 +01:00
element-deps Add CentOS 8 support 2020-02-19 10:44:56 +01:00
element-provides Add CentOS 8 support 2020-02-19 10:44:56 +01:00
README.rst Add CentOS 8 support 2020-02-19 10:44:56 +01:00

======
centos
======

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

For further details see the redhat-common README.

Environment Variables
---------------------

DIB_DISTRIBUTION_MIRROR:
   :Required: No
   :Default: None
   :Description: To use a CentOS Yum mirror, set this variable to the mirror URL
                 before running bin/disk-image-create. This URL should point to
                 the directory containing the ``7/8`` directories.
   :Example: ``DIB_DISTRIBUTION_MIRROR=http://amirror.com/centos``

DIB_CLOUD_IMAGES:
  :Required: No
  :Description: Set the desired URL to fetch the images from.  ppc64le:
                Currently the CentOS community is working on providing the
                ppc64le images. Until then you'll need to set this to a local
                image file.
  :Example: ``DIB_CLOUD_IMAGES=/path/to/my/centos/8/CentOS-8-GenericCloud-x86_64.qcow2``