diff --git a/pkg/action/bootentries.go b/pkg/action/bootentries.go index abc63aef..821da599 100644 --- a/pkg/action/bootentries.go +++ b/pkg/action/bootentries.go @@ -83,7 +83,7 @@ func selectBootEntrySystemd(cfg *config.Config, entry string) error { } originalEntries := entries - // when there are only 4 entries, we can assume they are either cos (which will be replaced eventually), fallback, recovery or autoreset + // when there are only 4 entries, we can assume they are either cos (which will be replaced eventually), fallback, recovery or statereset if len(entries) == len(cnst.UkiDefaultMenuEntries()) { entries = cnst.UkiDefaultMenuEntries() } diff --git a/pkg/uki/install.go b/pkg/uki/install.go index e54d840d..ec957c7e 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", "statereset"} { 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)