Skip to content

Commit

Permalink
fix[close #283]: no lockfile on rollback check
Browse files Browse the repository at this point in the history
  • Loading branch information
matbme authored and mirkobrombin committed May 24, 2024
1 parent c0de425 commit 8a625d0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions core/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -903,10 +903,12 @@ func (s *ABSystem) Rollback(checkOnly bool) (response ABRollbackResponse, err er
defer cq.Run()

// we won't allow upgrades while rolling back
err = s.LockUpgrade()
if err != nil {
PrintVerboseErr("ABSystem.Rollback", 0, err)
return ROLLBACK_FAILED, err
if !checkOnly {
err = s.LockUpgrade()
if err != nil {
PrintVerboseErr("ABSystem.Rollback", 0, err)
return ROLLBACK_FAILED, err
}
}

partBoot, err := s.RootM.GetBoot()
Expand Down

0 comments on commit 8a625d0

Please sign in to comment.