diff --git a/pkg/uki/install.go b/pkg/uki/install.go index 07ac6649..e8a3281f 100644 --- a/pkg/uki/install.go +++ b/pkg/uki/install.go @@ -182,7 +182,7 @@ func (i *InstallAction) Run() (err error) { } // Add boot assessment to files by appending +3 to the name - err = utils.AddBootAssessment(i.cfg.Fs, i.spec.Partitions.EFI.MountPoint, i.cfg.Logger) + err = utils.AddBootAssessment(i.cfg.Fs, constants.UkiEfiDir, i.cfg.Logger) if err != nil { i.cfg.Logger.Warnf("adding boot assesment: %s", err.Error()) } diff --git a/pkg/uki/reset.go b/pkg/uki/reset.go index 57d8d7db..ab9641ef 100644 --- a/pkg/uki/reset.go +++ b/pkg/uki/reset.go @@ -80,6 +80,13 @@ func (r *ResetAction) Run() (err error) { r.cfg.Logger.Errorf("copying recovery to active: %s", err.Error()) return fmt.Errorf("copying recovery to active: %w", err) } + + // Add boot assessment to files by appending +3 to the name + err = elementalUtils.AddBootAssessment(r.cfg.Fs, constants.UkiEfiDir, r.cfg.Logger) + if err != nil { + r.cfg.Logger.Warnf("adding boot assesment: %s", err.Error()) + } + // SelectBootEntry sets the default boot entry to the selected entry err = action.SelectBootEntry(r.cfg, "cos") // Should we fail? Or warn? diff --git a/pkg/uki/upgrade.go b/pkg/uki/upgrade.go index 7b369ed2..1a1e4e5e 100644 --- a/pkg/uki/upgrade.go +++ b/pkg/uki/upgrade.go @@ -109,7 +109,11 @@ func (i *UpgradeAction) Run() (err error) { i.cfg.Logger.Errorf("removing artifact set: %s", err.Error()) return fmt.Errorf("removing artifact set: %w", err) } - + // Add boot assessment to files by appending +3 to the name + err = elementalUtils.AddBootAssessment(i.cfg.Fs, constants.UkiEfiDir, i.cfg.Logger) + if err != nil { + i.cfg.Logger.Warnf("adding boot assesment: %s", err.Error()) + } // SelectBootEntry sets the default boot entry to the selected entry err = action.SelectBootEntry(i.cfg, "cos") // Should we fail? Or warn?