Skip to content

Commit

Permalink
image: make the RHEL lorax template selection configurable
Browse files Browse the repository at this point in the history
Make the use of RHEL lorax templates configurable from the top level
image definition so that we can control it in BIB based on the distro
being built.
  • Loading branch information
achilleas-k authored and ondrejbudai committed May 18, 2024
1 parent dc4299b commit 8f50ec4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/image/anaconda_container_installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ type AnacondaContainerInstaller struct {
FIPS bool

Kickstart *kickstart.Options

UseRHELLoraxTemplates bool
}

func NewAnacondaContainerInstaller(container container.SourceSpec, ref string) *AnacondaContainerInstaller {
Expand Down Expand Up @@ -69,8 +71,7 @@ func (img *AnacondaContainerInstaller) InstantiateManifest(m *manifest.Manifest,
img.Preview,
)

// This is only built with ELN for now
anacondaPipeline.UseRHELLoraxTemplates = true
anacondaPipeline.UseRHELLoraxTemplates = img.UseRHELLoraxTemplates

anacondaPipeline.ExtraPackages = img.ExtraBasePackages.Include
anacondaPipeline.ExcludePackages = img.ExtraBasePackages.Exclude
Expand Down

0 comments on commit 8f50ec4

Please sign in to comment.