diskimage-builder/diskimage_builder/elements/centos-minimal
Ian Wienand d1b2a43a84 centos: do not use $releasever in .repo files
For centos stream, the $releasever is just the major version.  Several
of our .repo files are using $releasever in their path, and I think
that 8-stream installs are actually using 8 repos to install from.
For 9-stream, which doesn't have a corresponding 9, we're getting
errors enabling some of the aarch64 tests.

Replace all the $releasever expansions in the .repo files with the
exact version they are being installed for.  They don't need to be
generic; we are installing these specific repos for each DIB_RELEASE,
so they don't mix-and-match.

Change-Id: I48d438d8f51280cd060433fc8a67358d8345287f
2022-01-28 18:50:43 +11:00
..
environment.d Support secure-boot bootloader where possible 2021-03-11 10:27:59 +13:00
test-elements Use OpenDev mirrors for 8-stream CI builds 2021-12-10 17:26:34 +11:00
yum.repos.d centos: do not use $releasever in .repo files 2022-01-28 18:50:43 +11:00
element-deps Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
element-provides Move elements & lib relative to diskimage_builder package 2016-11-01 17:27:41 -07:00
README.rst Add support for CentOS 8 Stream 2020-06-22 10:36:30 +02:00

==============
centos-minimal
==============
Create a minimal image based on CentOS

Use of this element will require 'yum' and 'yum-utils' to be installed on
Ubuntu and Debian. Nothing additional is needed on Fedora or CentOS.

By default this builds CentOS 7 images.  Set ``DIB_RELEASE`` to ``7``,
``8`` or ``8-stream`` to explicitly select the release.

For CentOS 7, by default, ``DIB_YUM_MINIMAL_CREATE_INTERFACES`` is set
to enable the creation of
``/etc/sysconfig/network-scripts/ifcfg-eth[0|1]`` scripts to enable
DHCP on the ``eth0`` & ``eth1`` interfaces.  If you do not have these
interfaces, or if you are using something else to setup the network
such as cloud-init, glean or network-manager, you would want to set
this to ``0``.  For CentOS 8 and CentOS 8 Stream, this is set to ``0`` by
default as the system uses NetworkManager by default.