diff --git a/pkg/distro/defs/distros.yaml b/pkg/distro/defs/distros.yaml index 64fdea8c4b..9d75518404 100644 --- a/pkg/distro/defs/distros.yaml +++ b/pkg/distro/defs/distros.yaml @@ -96,6 +96,11 @@ distros: - ec2 - ec2-sap - ec2-ha + "some image types are non-rhel-only": + when: + distro_name: "rhel" + ignore_image_types: + - azure # rhel & centos share the same list of allowed profiles so a # single allow list can be used oscap_profiles_allowlist: &oscap_profile_allowlist_rhel @@ -187,6 +192,11 @@ distros: - ec2 - ec2-sap - ec2-ha + "some image types are non-rhel-only": + when: + distro_name: "rhel" + ignore_image_types: + - azure "CVM is only available starting from 9.6": when: version_less_than: "9.6" diff --git a/pkg/distro/defs/rhel-10/distro.yaml b/pkg/distro/defs/rhel-10/distro.yaml index bca7953723..927309cc62 100644 --- a/pkg/distro/defs/rhel-10/distro.yaml +++ b/pkg/distro/defs/rhel-10/distro.yaml @@ -945,7 +945,6 @@ image_types: - "patch" - "rng-tools" - "selinux-policy-targeted" - - "system-reinstall-bootc" - "uuid" - "WALinuxAgent" - "yum-utils" @@ -997,15 +996,21 @@ image_types: - "rhnlib" - "rhnsd" - "usb_modeswitch" - conditions: &conditions_pkgsets_insights_client_on_rhel + conditions: "add insights client on rhel": when: distro_name: "rhel" append: include: - "insights-client" + "add system-reinstall-bootc on rhel": + when: + distro_name: "rhel" + append: + include: + - "system-reinstall-bootc" - "azure-rhui": &azure_rhui + "azure": &azure <<: *vhd payload_pipelines: ["os", "image", "vpc", "xz"] exports: ["xz"] @@ -1103,6 +1108,9 @@ image_types: - *azure_rhui_part_boot - *azure_rhui_part_lvm + "azure-rhui": &azure_rhui + <<: *azure + "azure-sap-rhui": <<: *azure_rhui platforms: @@ -1326,7 +1334,6 @@ image_types: - "redhat-release" - "redhat-release-eula" - "rsync" - - "system-reinstall-bootc" - "tuned" - "tar" exclude: @@ -1362,7 +1369,18 @@ image_types: # RHBZ#2075815 - "qemu-guest-agent" conditions: - <<: *conditions_pkgsets_insights_client_on_rhel + "add insights client on rhel": + when: + distro_name: "rhel" + append: + include: + - "insights-client" + "add system-reinstall-bootc on rhel": + when: + distro_name: "rhel" + append: + include: + - "system-reinstall-bootc" # RHEL internal-only x86_64 EC2 image type ec2: &ec2 @@ -1882,7 +1900,12 @@ image_types: # RHBZ#2075815 - "qemu-guest-agent" conditions: - <<: *conditions_pkgsets_insights_client_on_rhel + "add insights client on rhel": + when: + distro_name: "rhel" + append: + include: + - "insights-client" "azure-cvm": <<: *vhd diff --git a/pkg/distro/defs/rhel-9/distro.yaml b/pkg/distro/defs/rhel-9/distro.yaml index 9e7d3f6da2..44c6aee09b 100644 --- a/pkg/distro/defs/rhel-9/distro.yaml +++ b/pkg/distro/defs/rhel-9/distro.yaml @@ -1441,7 +1441,7 @@ image_types: exclude: - "microcode_ctl" - "azure-rhui": &azure_rhui + "azure": &azure <<: *vhd mime_type: "application/xz" payload_pipelines: ["os", "image", "vpc", "xz"] @@ -1597,6 +1597,9 @@ image_types: - *azure_rhui_part_boot_600 - *azure_rhui_part_lvm + "azure-rhui": &azure_rhui + <<: *azure + "azure-sap-rhui": <<: *azure_rhui platforms: diff --git a/pkg/distro/generic/rhel10_internal_test.go b/pkg/distro/generic/rhel10_internal_test.go index de263bfb96..3e63b1bd4b 100644 --- a/pkg/distro/generic/rhel10_internal_test.go +++ b/pkg/distro/generic/rhel10_internal_test.go @@ -77,7 +77,7 @@ func TestRhel10_NoBootPartition(t *testing.T) { if it.ImageTypeYAML.PartitionTables == nil { continue } - if it.Name() == "azure-rhui" || it.Name() == "azure-sap-rhui" || it.Name() == "azure-sapapps-rhui" { + if it.Name() == "azure-rhui" || it.Name() == "azure-sap-rhui" || it.Name() == "azure-sapapps-rhui" || it.Name() == "azure" { // Azure RHEL internal image type PT is by default LVM-based // and we do not support /boot on LVM, so it must be on a separate partition. continue diff --git a/test/config-map.json b/test/config-map.json index 87f6c0e0d2..700397e8ee 100644 --- a/test/config-map.json +++ b/test/config-map.json @@ -135,6 +135,7 @@ ], "image-types": [ "ami", + "azure", "azure-cvm", "azure-eap7-rhui", "azure-rhui", diff --git a/test/data/manifest-checksums/centos_10-aarch64-ami-all_customizations b/test/data/manifest-checksums/centos_10-aarch64-ami-all_customizations index bde6f30062..d87c3b4228 100644 --- a/test/data/manifest-checksums/centos_10-aarch64-ami-all_customizations +++ b/test/data/manifest-checksums/centos_10-aarch64-ami-all_customizations @@ -1 +1 @@ -993be534314a4e4f3c99c5a7e2d5de88000bded1 +c0eadc4e1ef0d8e5b1b07e427da1cc85cfeb6a04 diff --git a/test/data/manifest-checksums/centos_10-aarch64-ami-empty_rhel b/test/data/manifest-checksums/centos_10-aarch64-ami-empty_rhel index c43b1d9874..410bd39fc4 100644 --- a/test/data/manifest-checksums/centos_10-aarch64-ami-empty_rhel +++ b/test/data/manifest-checksums/centos_10-aarch64-ami-empty_rhel @@ -1 +1 @@ -32e4441d094952cb970928b8914eb3593ea240e0 +2ee3c909a81b8696a4a4f92e2e3fe44591e1be2e diff --git a/test/data/manifest-checksums/centos_10-aarch64-ami-file_customizations b/test/data/manifest-checksums/centos_10-aarch64-ami-file_customizations index 0b4c36820b..c06e40b8df 100644 --- a/test/data/manifest-checksums/centos_10-aarch64-ami-file_customizations +++ b/test/data/manifest-checksums/centos_10-aarch64-ami-file_customizations @@ -1 +1 @@ -85203a18053ed462c6b4b13dc29191a903a00595 +2f0887b19b01346edab151f154cc96388877d17f diff --git a/test/data/manifest-checksums/centos_10-aarch64-ami-partitioning_dos_lvm b/test/data/manifest-checksums/centos_10-aarch64-ami-partitioning_dos_lvm index cc56954287..e572dc5be6 100644 --- a/test/data/manifest-checksums/centos_10-aarch64-ami-partitioning_dos_lvm +++ b/test/data/manifest-checksums/centos_10-aarch64-ami-partitioning_dos_lvm @@ -1 +1 @@ -922ecc47c2f7f4e51a58968595961c098df4371b +0e882d6a768f0448775c1106e487ec9e524a39fe diff --git a/test/data/manifest-checksums/centos_10-aarch64-ami-partitioning_lvm b/test/data/manifest-checksums/centos_10-aarch64-ami-partitioning_lvm index bdfa4d5641..9e80fe6b21 100644 --- a/test/data/manifest-checksums/centos_10-aarch64-ami-partitioning_lvm +++ b/test/data/manifest-checksums/centos_10-aarch64-ami-partitioning_lvm @@ -1 +1 @@ -29a1b1d961d7fbebac2863974453084705b0bc4f +919685d4a979be5b2eb987ae2627f6a56281da9b diff --git a/test/data/manifest-checksums/centos_10-aarch64-ami-partitioning_plain b/test/data/manifest-checksums/centos_10-aarch64-ami-partitioning_plain index ef07e591f3..8205625c92 100644 --- a/test/data/manifest-checksums/centos_10-aarch64-ami-partitioning_plain +++ b/test/data/manifest-checksums/centos_10-aarch64-ami-partitioning_plain @@ -1 +1 @@ -41b9d18027f127ece5be59deca86e49bfb311ec1 +fcad54a1f5a5b4196644125ebfda7625e6e626fe diff --git a/test/data/manifest-checksums/centos_10-aarch64-azure-empty_rhel b/test/data/manifest-checksums/centos_10-aarch64-azure-empty_rhel new file mode 100644 index 0000000000..44a36e9541 --- /dev/null +++ b/test/data/manifest-checksums/centos_10-aarch64-azure-empty_rhel @@ -0,0 +1 @@ +ec7c8f9519972286f983506f4c3b6bda8a2ce934 diff --git a/test/data/manifest-checksums/centos_10-aarch64-vhd-empty_rhel b/test/data/manifest-checksums/centos_10-aarch64-vhd-empty_rhel index 86a8db367d..3235a0220e 100644 --- a/test/data/manifest-checksums/centos_10-aarch64-vhd-empty_rhel +++ b/test/data/manifest-checksums/centos_10-aarch64-vhd-empty_rhel @@ -1 +1 @@ -6f3670ca58581fa03db95ac5b38d133d1860dcbc +cdb63a5f44f13a1e3d5dbbc3b336d2eb01b5b65e diff --git a/test/data/manifest-checksums/centos_10-x86_64-ami-all_customizations b/test/data/manifest-checksums/centos_10-x86_64-ami-all_customizations index b009339ea3..11ba702642 100644 --- a/test/data/manifest-checksums/centos_10-x86_64-ami-all_customizations +++ b/test/data/manifest-checksums/centos_10-x86_64-ami-all_customizations @@ -1 +1 @@ -74b4b3e5bfd6354f8cedd70f181868fc09620108 +236219f1033f80578e5548be7c568d932bf0c42d diff --git a/test/data/manifest-checksums/centos_10-x86_64-ami-empty_rhel b/test/data/manifest-checksums/centos_10-x86_64-ami-empty_rhel index 9ef692ffcf..5da2a15685 100644 --- a/test/data/manifest-checksums/centos_10-x86_64-ami-empty_rhel +++ b/test/data/manifest-checksums/centos_10-x86_64-ami-empty_rhel @@ -1 +1 @@ -8d98e9c0d4685e5c9410ea80fa5648793fdf3106 +4824b53e2edfa90c26d543b35885ab38c71953cb diff --git a/test/data/manifest-checksums/centos_10-x86_64-ami-file_customizations b/test/data/manifest-checksums/centos_10-x86_64-ami-file_customizations index dfcc383cdd..30ae7a7fea 100644 --- a/test/data/manifest-checksums/centos_10-x86_64-ami-file_customizations +++ b/test/data/manifest-checksums/centos_10-x86_64-ami-file_customizations @@ -1 +1 @@ -f742c3920cb798b57ef9e32ad4981cab2da5813d +48e295f1b099bc5f0a93ff50317e38a1fa9ae6fa diff --git a/test/data/manifest-checksums/centos_10-x86_64-ami-partitioning_dos_lvm b/test/data/manifest-checksums/centos_10-x86_64-ami-partitioning_dos_lvm index e29e42c99e..0945e272a3 100644 --- a/test/data/manifest-checksums/centos_10-x86_64-ami-partitioning_dos_lvm +++ b/test/data/manifest-checksums/centos_10-x86_64-ami-partitioning_dos_lvm @@ -1 +1 @@ -b299ade56b36c2db5da9bd1db02c43f5a1c8000f +4fedacc8a4a8da9b779e34c79d6db3ed0c9e5de6 diff --git a/test/data/manifest-checksums/centos_10-x86_64-ami-partitioning_lvm b/test/data/manifest-checksums/centos_10-x86_64-ami-partitioning_lvm index 3b6bf5f01c..0ed88b3124 100644 --- a/test/data/manifest-checksums/centos_10-x86_64-ami-partitioning_lvm +++ b/test/data/manifest-checksums/centos_10-x86_64-ami-partitioning_lvm @@ -1 +1 @@ -a20e588467b988e110e409278ca3c9489e5090ed +098dab75e46f7e0e41444ba167e923687dab525d diff --git a/test/data/manifest-checksums/centos_10-x86_64-ami-partitioning_plain b/test/data/manifest-checksums/centos_10-x86_64-ami-partitioning_plain index 4b7becf64f..9ea335af80 100644 --- a/test/data/manifest-checksums/centos_10-x86_64-ami-partitioning_plain +++ b/test/data/manifest-checksums/centos_10-x86_64-ami-partitioning_plain @@ -1 +1 @@ -3721077f4ed9c3e5555cf2dcb5d78ff1e31c2fd4 +2b421ca527df63aeef2839caf82809d8e4950b5e diff --git a/test/data/manifest-checksums/centos_10-x86_64-azure-empty_rhel b/test/data/manifest-checksums/centos_10-x86_64-azure-empty_rhel new file mode 100644 index 0000000000..ee7443ac42 --- /dev/null +++ b/test/data/manifest-checksums/centos_10-x86_64-azure-empty_rhel @@ -0,0 +1 @@ +7f384877bc57ae32c15f109bc290ef4b6efb3f20 diff --git a/test/data/manifest-checksums/centos_10-x86_64-vhd-empty_rhel b/test/data/manifest-checksums/centos_10-x86_64-vhd-empty_rhel index ae2c5d2f58..1457ba82b1 100644 --- a/test/data/manifest-checksums/centos_10-x86_64-vhd-empty_rhel +++ b/test/data/manifest-checksums/centos_10-x86_64-vhd-empty_rhel @@ -1 +1 @@ -19e15fb9617defb397c93b7464fad59e86a334e4 +72fc190de032d3edf60186f87b9a4f33aa9c1a09 diff --git a/test/data/manifest-checksums/centos_9-aarch64-azure-empty_rhel b/test/data/manifest-checksums/centos_9-aarch64-azure-empty_rhel new file mode 100644 index 0000000000..5daec7a584 --- /dev/null +++ b/test/data/manifest-checksums/centos_9-aarch64-azure-empty_rhel @@ -0,0 +1 @@ +dea110fc4eff8e562226caa8537983ffb1342aa4 diff --git a/test/data/manifest-checksums/centos_9-x86_64-azure-empty_rhel b/test/data/manifest-checksums/centos_9-x86_64-azure-empty_rhel new file mode 100644 index 0000000000..64a16bf02b --- /dev/null +++ b/test/data/manifest-checksums/centos_9-x86_64-azure-empty_rhel @@ -0,0 +1 @@ +9f7fcd5de0e8987c4a15cae13efaba14797b59f0