-
Notifications
You must be signed in to change notification settings - Fork 54
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
Conversation
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]>
Signed-off-by: Tomáš Hozza <[email protected]>
Signed-off-by: Tomáš Hozza <[email protected]>
Signed-off-by: Tomáš Hozza <[email protected]>
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. |
There was a problem hiding this 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
Add the following image types:
These are based on RHEL-9 versions, with one difference for SAP images not including
gtk2
andlibcanberra-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