distro/rhel8: add Azure aarch64 platform and include image types

The Azure image types require hyperv-daemons which isn't available on
RHEL 8 prior to 8.6.
This commit is contained in:
Achilleas Koutsou 2023-01-26 16:56:06 +01:00 committed by Ondřej Budai
parent c3d5fd516f
commit 2723554b2a

View file

@ -404,6 +404,13 @@ func newDistro(name string, minor int) *distribution {
}, },
} }
azureAarch64Platform := &platform.Aarch64{
UEFIVendor: rd.vendor,
BasePlatform: platform.BasePlatform{
ImageFormat: platform.FORMAT_VHD,
},
}
rawUEFIx86Platform := &platform.X86{ rawUEFIx86Platform := &platform.X86{
BasePlatform: platform.BasePlatform{ BasePlatform: platform.BasePlatform{
ImageFormat: platform.FORMAT_RAW, ImageFormat: platform.FORMAT_RAW,
@ -431,6 +438,9 @@ func newDistro(name string, minor int) *distribution {
edgeRawImgType(), edgeRawImgType(),
edgeSimplifiedInstallerImgType(rd), edgeSimplifiedInstallerImgType(rd),
) )
// The Azure image types require hyperv-daemons which isn't available on older versions
aarch64.addImageTypes(azureAarch64Platform, azureRhuiImgType(), azureByosImgType())
} }
// add azure to RHEL distro only // add azure to RHEL distro only
@ -470,6 +480,8 @@ func newDistro(name string, minor int) *distribution {
edgeRawImgType(), edgeRawImgType(),
edgeSimplifiedInstallerImgType(rd), edgeSimplifiedInstallerImgType(rd),
) )
aarch64.addImageTypes(azureAarch64Platform, azureImgType())
} }
rd.addArches(x86_64, aarch64, ppc64le) rd.addArches(x86_64, aarch64, ppc64le)
return &rd return &rd