diff --git a/pkg/distro/rhel/rhel9/azure.go b/pkg/distro/rhel/rhel9/azure.go index 059f61dbb6..1cf2cb4456 100644 --- a/pkg/distro/rhel/rhel9/azure.go +++ b/pkg/distro/rhel/rhel9/azure.go @@ -34,8 +34,8 @@ func mkAzureImgType(rd *rhel.Distribution) *rhel.ImageType { return it } -// Azure RHUI image type -func mkAzureRhuiImgType(rd *rhel.Distribution) *rhel.ImageType { +// Azure RHEL-internal image type +func mkAzureInternalImgType(rd *rhel.Distribution) *rhel.ImageType { it := rhel.NewImageType( "azure-rhui", "disk.vhd.xz", @@ -54,12 +54,12 @@ func mkAzureRhuiImgType(rd *rhel.Distribution) *rhel.ImageType { it.Bootable = true it.DefaultSize = 64 * common.GibiByte it.DefaultImageConfig = defaultAzureImageConfig(rd) - it.BasePartitionTables = azureRhuiBasePartitionTables + it.BasePartitionTables = azureInternalBasePartitionTables return it } -func mkAzureSapRhuiImgType(rd *rhel.Distribution) *rhel.ImageType { +func mkAzureSapInternalImgType(rd *rhel.Distribution) *rhel.ImageType { it := rhel.NewImageType( "azure-sap-rhui", "disk.vhd.xz", @@ -78,7 +78,7 @@ func mkAzureSapRhuiImgType(rd *rhel.Distribution) *rhel.ImageType { it.Bootable = true it.DefaultSize = 64 * common.GibiByte it.DefaultImageConfig = sapAzureImageConfig(rd) - it.BasePartitionTables = azureRhuiBasePartitionTables + it.BasePartitionTables = azureInternalBasePartitionTables return it } @@ -177,7 +177,7 @@ func azureSapPackageSet(t *rhel.ImageType) rpmmd.PackageSet { } // PARTITION TABLES -func azureRhuiBasePartitionTables(t *rhel.ImageType) (disk.PartitionTable, bool) { +func azureInternalBasePartitionTables(t *rhel.ImageType) (disk.PartitionTable, bool) { var bootSize uint64 switch { case common.VersionLessThan(t.Arch().Distro().OsVersion(), "9.3") && t.IsRHEL(): diff --git a/pkg/distro/rhel/rhel9/distro.go b/pkg/distro/rhel/rhel9/distro.go index de8fa0f057..eb838c7bd4 100644 --- a/pkg/distro/rhel/rhel9/distro.go +++ b/pkg/distro/rhel/rhel9/distro.go @@ -332,10 +332,10 @@ func newDistro(name string, major, minor int) *rhel.Distribution { ) if rd.IsRHEL() { // RHEL-only (non-CentOS) image types - x86_64.AddImageTypes(azureX64Platform, mkAzureRhuiImgType(rd)) - aarch64.AddImageTypes(azureAarch64Platform, mkAzureRhuiImgType(rd)) + x86_64.AddImageTypes(azureX64Platform, mkAzureInternalImgType(rd)) + aarch64.AddImageTypes(azureAarch64Platform, mkAzureInternalImgType(rd)) - x86_64.AddImageTypes(azureX64Platform, mkAzureSapRhuiImgType(rd)) + x86_64.AddImageTypes(azureX64Platform, mkAzureSapInternalImgType(rd)) // keep the RHEL EC2 x86_64 images before 9.3 BIOS-only for backward compatibility if common.VersionLessThan(rd.OsVersion(), "9.3") {