diff --git a/pkg/uki/reset.go b/pkg/uki/reset.go index ab9641ef..244ef3dc 100644 --- a/pkg/uki/reset.go +++ b/pkg/uki/reset.go @@ -82,7 +82,7 @@ func (r *ResetAction) Run() (err error) { } // Add boot assessment to files by appending +3 to the name - err = elementalUtils.AddBootAssessment(r.cfg.Fs, constants.UkiEfiDir, r.cfg.Logger) + err = elementalUtils.AddBootAssessment(r.cfg.Fs, r.spec.Partitions.EFI.MountPoint, r.cfg.Logger) if err != nil { r.cfg.Logger.Warnf("adding boot assesment: %s", err.Error()) } diff --git a/pkg/uki/upgrade.go b/pkg/uki/upgrade.go index 1a1e4e5e..9bc3f0d4 100644 --- a/pkg/uki/upgrade.go +++ b/pkg/uki/upgrade.go @@ -110,7 +110,7 @@ func (i *UpgradeAction) Run() (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) + err = elementalUtils.AddBootAssessment(i.cfg.Fs, i.spec.EfiPartition.MountPoint, i.cfg.Logger) if err != nil { i.cfg.Logger.Warnf("adding boot assesment: %s", err.Error()) }