I have a doubt. Let’s say I have a snap called “myawesomesnap” installed on my system. This mounts a read only squashfs partition like:
/var/lib/snapd/snaps/myawesomesnap_69.snap on /snap/myawesomesnap/69 type squashfs (ro,nodev,realtime)
Now imagine that for some reason (my hdd is faulty or the snap is running on an unshielded computer in outer space, whatever) and /var/lib/snapd/snaps/myawesomesnap_69.snap gets corrupted.
What would happen?
Does snapd realize it and does not allow you to run “myawesomesnap”?
If the corruption is not lethal to the squashfs format, would snapd run my snap and get undefined behavior (likely a segmentation fault somewhere)?
Thank you in advance for your insight.