I was curious where we do this so I went looking and this is the start of the problem:
https://github.com/snapcore/snapd/blob/7ff96a40a7a7a7779db250b087cec9b183540130/overlord/snapshotstate/backend/helpers.go#L145
In absence of other information, we snapshot the state for all the users this way.
I was curious where we do this so I went looking and this is the start of the problem:
https:/ /github. com/snapcore/ snapd/blob/ 7ff96a40a7a7a77 79db250b087cec9 b183540130/ overlord/ snapshotstate/ backend/ helpers. go#L145
In absence of other information, we snapshot the state for all the users this way.