diskimage-builder/diskimage_builder/elements/centos
Steve Baker e129fad7f8 Move reset-bls-entries to post-install
03-reset-bls-entries was previously a pre-install script to run after
the machine-id was set, but a new kernel may be installed during the
install phase, which will install another bls entry file with a
filename which differs from the machine-id.

This means this package installed bls file won't be updated when
grub2-mkconfig is called, resulting in incorrect kernel args and boot
device in the entry file that will get booted by default.

By fixing the filenames after the new kernel is installed,
grub2-mkconfig will update the bls file that actually gets used on
boot.

Change-Id: I653bef9638e38ded68458fd40d90e30e5206caad
2022-04-21 10:13:10 +12:00
..
environment.d Support secure-boot bootloader where possible 2021-03-11 10:27:59 +13:00
post-install.d Move reset-bls-entries to post-install 2022-04-21 10:13:10 +12:00
pre-install.d Move reset-bls-entries to post-install 2022-04-21 10:13:10 +12:00
root.d Use https for base centos image download 2022-01-14 10:00:15 +13:00
test-elements centos: work around 9-stream BLS issues 2021-12-22 21:07:23 +11: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 Cleanup more CentOS 8 bits 2022-02-01 15:39:24 +11: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-stream/9-stream`` 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``