As has been discussed informally a few times, it would be desirable to prevent snapd from automatically refreshing snaps in a live session, such as an installer environment. Given the ephemeral nature of live sessions a refresh isn’t very useful and in the case of subiquity at least they are quite disruptive.
@niemeyer said “What I’d like to achieve is being able to detect this situation, probably by verifying that the data directories are in RAM” which seems reasonable although I don’t precisely know how to do it.
I am willing to work on implementing this feature