snapd icon indicating copy to clipboard operation
snapd copied to clipboard

many: avoid automatic system restarts on classic through new overlord/restart logic

Open pedronis opened this issue 3 years ago • 1 comments

The logic is implemented by a new restart.FinishTaskWithRestart that gets delegated to from snapstate.FinishTaskWithRestart.

pedronis avatar Oct 04 '22 12:10 pedronis

I'm turning held-for-system-restart into just a flag/marker. We need it to keep the ByAttr pattern on applying the predicates. In principle in this case the predicate is relatively cheap, which I didn't expect, but the pattern is designed to help when that might not be the case and it's better to fit into it, as it's followed by other things as well.

pedronis avatar Oct 21 '22 14:10 pedronis