From 972b9ee14e5286104354369a0b42f50f300cacea Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Fri, 8 Oct 2021 16:33:28 +0200 Subject: [PATCH] distro/rhel90: rename to rhel-90-beta and alias base name --- internal/distro/rhel90/distro.go | 7 ++++++- internal/distroregistry/distroregistry.go | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/internal/distro/rhel90/distro.go b/internal/distro/rhel90/distro.go index a536c6bdb..2c6a49838 100644 --- a/internal/distro/rhel90/distro.go +++ b/internal/distro/rhel90/distro.go @@ -16,7 +16,8 @@ import ( "github.com/osbuild/osbuild-composer/internal/rpmmd" ) -const defaultName = "rhel-90" +const defaultName = "rhel-90-beta" +const baseAliasName = "rhel-90" const osVersion = "9.0" const releaseVersion = "9" const modulePlatformID = "platform:el9" @@ -487,6 +488,10 @@ func New() distro.Distro { return newDistro(defaultName, modulePlatformID, ostreeRef) } +func NewRHEL90() distro.Distro { + return newDistro(baseAliasName, modulePlatformID, ostreeRef) +} + func NewHostDistro(name, modulePlatformID, ostreeRef string) distro.Distro { return newDistro(name, modulePlatformID, ostreeRef) } diff --git a/internal/distroregistry/distroregistry.go b/internal/distroregistry/distroregistry.go index 069bd3708..41b81e718 100644 --- a/internal/distroregistry/distroregistry.go +++ b/internal/distroregistry/distroregistry.go @@ -27,6 +27,7 @@ var supportedDistros = []supportedDistro{ {rhel85.New, rhel85.NewHostDistro}, {rhel86.New, rhel86.NewHostDistro}, {rhel90.New, rhel90.NewHostDistro}, + {rhel90.NewRHEL90, rhel90.NewHostDistro}, } type supportedDistro struct {