Skip to content

Commit

Permalink
Fix mountpoint for efi during install
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 a15632a commit 5336486
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/uki/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, constants.UkiEfiDir, i.cfg.Logger)
err = utils.AddBootAssessment(i.cfg.Fs, i.spec.Partitions.EFI.MountPoint, i.cfg.Logger)
if err != nil {
i.cfg.Logger.Warnf("adding boot assesment: %s", err.Error())
}
Expand Down
1 change: 1 addition & 0 deletions pkg/utils/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,7 @@ func AddBootAssessment(fs v1.FS, artifactDir string, logger sdkTypes.KairosLogge
// If it matches continue
re := regexp.MustCompile(`\+\d+(-\d+)?$`)
if re.MatchString(base) {
logger.Logger.Debug().Str("file", path).Msg("Boot assessment already present in file")
return nil
}
newBase := fmt.Sprintf("%s+3%s", base, ext)
Expand Down

0 comments on commit 5336486

Please sign in to comment.