One small issue I hit during my experiment with (still experimental) layouts (discussed this on IRC, mentioning here so we don’t forget):
I was trying to define a layout such as this:
but got the following error when running my app:
cannot update snap namespace: cannot create writable mimic over "/usr/lib": permission denied;
and the following denial:
[68891.838823] audit: type=1400 audit(1524071502.757:492): apparmor="DENIED" operation="mount" info="failed mntpnt match" error=-13 profile="snap-update-ns.scid" name="/tmp/.snap/usr/lib/" pid=15755 comm="3" srcname="/usr/lib/" flags="rw, rbind"
It seems that the directories prior to “tk8.5” must exist for layout to work - I got it working by bind-mounting everything at the