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 committed May 17, 2024
1 parent dc4299b commit 799089b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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 @@ -70,7 +72,7 @@ func (img *AnacondaContainerInstaller) InstantiateManifest(m *manifest.Manifest,
)

// 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 799089b

Please sign in to comment.