distro/rhel90: rename to rhel-90-beta and alias base name

This commit is contained in:
Achilleas Koutsou 2021-10-08 16:33:28 +02:00 committed by Tomáš Hozza
parent b81d58b895
commit 972b9ee14e
2 changed files with 7 additions and 1 deletions

View file

@ -16,7 +16,8 @@ import (
"github.com/osbuild/osbuild-composer/internal/rpmmd" "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 osVersion = "9.0"
const releaseVersion = "9" const releaseVersion = "9"
const modulePlatformID = "platform:el9" const modulePlatformID = "platform:el9"
@ -487,6 +488,10 @@ func New() distro.Distro {
return newDistro(defaultName, modulePlatformID, ostreeRef) return newDistro(defaultName, modulePlatformID, ostreeRef)
} }
func NewRHEL90() distro.Distro {
return newDistro(baseAliasName, modulePlatformID, ostreeRef)
}
func NewHostDistro(name, modulePlatformID, ostreeRef string) distro.Distro { func NewHostDistro(name, modulePlatformID, ostreeRef string) distro.Distro {
return newDistro(name, modulePlatformID, ostreeRef) return newDistro(name, modulePlatformID, ostreeRef)
} }

View file

@ -27,6 +27,7 @@ var supportedDistros = []supportedDistro{
{rhel85.New, rhel85.NewHostDistro}, {rhel85.New, rhel85.NewHostDistro},
{rhel86.New, rhel86.NewHostDistro}, {rhel86.New, rhel86.NewHostDistro},
{rhel90.New, rhel90.NewHostDistro}, {rhel90.New, rhel90.NewHostDistro},
{rhel90.NewRHEL90, rhel90.NewHostDistro},
} }
type supportedDistro struct { type supportedDistro struct {