From d7128ce762725191579eafd72f0e2821a43ab1de Mon Sep 17 00:00:00 2001 From: Mauro Morales Date: Fri, 29 Mar 2024 16:04:31 +0100 Subject: [PATCH] Bad refactoring, these should be active not cos Signed-off-by: Mauro Morales --- pkg/uki/install.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/uki/install.go b/pkg/uki/install.go index e54d840d..53640850 100644 --- a/pkg/uki/install.go +++ b/pkg/uki/install.go @@ -143,7 +143,7 @@ func (i *InstallAction) Run() (err error) { return err } - for _, role := range constants.UkiDefaultMenuEntries() { + for _, role := range []string{"active", "passive", "recovery", "autoreset"} { if err = copyArtifactSetRole(i.cfg.Fs, i.spec.Partitions.EFI.MountPoint, UnassignedArtifactRole, role, i.cfg.Logger); err != nil { i.cfg.Logger.Errorf("installing the new artifact set as %s: %s", role, err.Error()) return fmt.Errorf("installing the new artifact set as %s: %w", role, err)