I noticed that some things in the snap mount namespace don’t seem to get updated when the underlying files are modified. The specific case where I noticed this is related
I was looking into the issue reported here: Slack snap won't install: "cannot create writable mimic over /etc: cannot open file /etc/passwd: permission denied"
I noticed that, at least with the slack snap, once it’s been started, it seems to somehow cache the contents of
If I do:
snap run --shell slack
Initially it’s the same as the standard system, but if I update the contents of the file in the system and then check from the snap point of view, it doesn’t get updated. Not even if I make sure there are no instances of that snap running, and shell into it again. It only seems to update if I reboot the system.
The specific snap I mentioned does have some
/etc, but nothing specific to
How does this work ? Is there some caching going on somewhere ? Is this an implementation decision at snapd level, or just normal for Linux mount namespaces ? Is this configurable somehow at the snapcraft definition level ?