snapd
snapd copied to clipboard
many: avoid automatic system restarts on classic through new overlord/restart logic
The logic is implemented by a new restart.FinishTaskWithRestart that gets delegated to from snapstate.FinishTaskWithRestart.
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.