After upgrade or recovery, set bootentry to "cos" (#251)

This commit is contained in:
Mauro Morales
2024-03-16 16:27:29 +01:00
committed by GitHub
parent 0c06b1b183
commit 3328a2987f
5 changed files with 137 additions and 13 deletions

View File

@@ -81,7 +81,7 @@ func (r *ResetAction) Run() (err error) {
return fmt.Errorf("copying recovery to active: %w", err)
}
// SelectBootEntry sets the default boot entry to the selected entry
err = action.SelectBootEntry(r.cfg, "active")
err = action.SelectBootEntry(r.cfg, "cos")
// Should we fail? Or warn?
if err != nil {
r.cfg.Logger.Errorf("selecting boot entry : %s", err.Error())