From 8f50ec4b03aec02ea8d7e90ebd1633f4eee47407 Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Fri, 17 May 2024 14:02:51 +0200 Subject: [PATCH] image: make the RHEL lorax template selection configurable 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. --- pkg/image/anaconda_container_installer.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/image/anaconda_container_installer.go b/pkg/image/anaconda_container_installer.go index 79175ae79b..c70b15cb6b 100644 --- a/pkg/image/anaconda_container_installer.go +++ b/pkg/image/anaconda_container_installer.go @@ -41,6 +41,8 @@ type AnacondaContainerInstaller struct { FIPS bool Kickstart *kickstart.Options + + UseRHELLoraxTemplates bool } func NewAnacondaContainerInstaller(container container.SourceSpec, ref string) *AnacondaContainerInstaller { @@ -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