Skip to content

Commit

Permalink
Fix efi partition during upgrade and reset
Browse files Browse the repository at this point in the history
Signed-off-by: Itxaka <[email protected]>
  • Loading branch information
Itxaka committed Nov 25, 2024
1 parent 5336486 commit 187b02a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/uki/reset.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/uki/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
Expand Down

0 comments on commit 187b02a

Please sign in to comment.