Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RHEL-10] add internal-only image types (COMPOSER-2357) #1067

Merged
merged 12 commits into from
Nov 28, 2024

Conversation

thozza
Copy link
Member

@thozza thozza commented Nov 26, 2024

Add the following image types:

  • ec2 (x86_64, aarch64)
  • ec2-ha (x86_64)
  • ec2-sap (x86_64)
  • azure-rhui (x86_64, aarch64)
  • azure-sap-rhui (x86_64)

These are based on RHEL-9 versions, with one difference for SAP images not including gtk2 and libcanberra-gtk2 packages removed from RHEL-10. The internal team working on SAP is aware of this, and we may need to adjust this eventually, but this is a good starting point.

Related to https://issues.redhat.com/browse/COMPOSER-2357

Merge the image generator functions used for the Azure images. One was
used for the CentOS Stream and the other for RHEL images. However, the
underlying image was exactly the same (WRT image config, partitioning,
etc.).

This change has no effect on the resulting manifests.

Signed-off-by: Tomáš Hozza <[email protected]>
I'm not sure if this was initially missed for RHEL-10, but the RHEL-9
VHD image imports the RHEL RPM GPG key by default. There's no good
reason to not do the same on RHEL-10. Fix the image definition.

Signed-off-by: Tomáš Hozza <[email protected]>
The image definition is based on RHEL-9.

The image type default PT is LVM-based and has `/boot` on a separate
partition, because we don't support `/boot` on LVM.

Signed-off-by: Tomáš Hozza <[email protected]>
The image definition is based on RHEL-9.

The image type default PT is LVM-based and has `/boot` on a separate
partition, because we don't support `/boot` on LVM.

The `gtk2` package has been commented out from the default SAP package
set, because it is not available on RHEL-10.

Signed-off-by: Tomáš Hozza <[email protected]>
There's no reason to define a separate build package set for any EC2
images, because any required packages will be automatically added to the
build pipeline pkgset by the pipeline implementation.

Signed-off-by: Tomáš Hozza <[email protected]>
Move function definitions within the file to be in a similar order and
structure as the Azure definitions file.

Signed-off-by: Tomáš Hozza <[email protected]>
The constants used for kernel options for EC2 images share some parts.
Let's refactor them to make differences easier to spot. Also don't use
string literals on multiple places.

Signed-off-by: Tomáš Hozza <[email protected]>
RHEL-9 AMI has been reworked as part of the RHSM auto-reg v2, which
resulted in all RHSM and RHUI specific parts to be removed from the
image definitions. This allowed to simplify them and some functions
were renamed as part of it.

Carry over the function names used in RHEL-9 to RHEL-10, to make things
more consistent across these distributions.

Signed-off-by: Tomáš Hozza <[email protected]>
Define a common ec2Aarch64Platform and use it everywhere in the future
when there will be more than one EC2 Aarch64 image types.

Signed-off-by: Tomáš Hozza <[email protected]>
@thozza
Copy link
Member Author

thozza commented Nov 27, 2024

I did some unification of image definition code (just moving things around so that files in different distros look as similar as possible) as part of this work, but I'll submit it as a separate PR.

Copy link
Member

@achilleas-k achilleas-k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this. I especially love all the cleanups and dedupes/unifications/syncing between RHEL 9 and 10 <3

@achilleas-k achilleas-k added this pull request to the merge queue Nov 28, 2024
Merged via the queue into osbuild:main with commit c211c9d Nov 28, 2024
19 checks passed
@thozza thozza deleted the COMPOSER-2357 branch November 29, 2024 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants