I’m still working on this and still need some help in getting it fly.
I have used mir-libs-snap and mir-kiosk as the examples of producer and consumer respectively. Based on them I have following declarations:
Now, as I understand the documentation here are the rules:
content must match between producer and consumer
default-provider is important for auto-connection and should match the producer:slot
target is where the “content” coming from producer will be mounted at the consumer side
read is a path to expose, relative to /snap/$SNAP_NAME/current
However clearly I have something wrong because still whenever I try to use it I get:
/snap/tpm2-tools/x1/sbin/tpm2_listpcrs: error while loading shared
libraries: libtcti-socket.so.0: cannot open shared object file: No such
file or directory
For the reference the tpm2-tools snap that I use here for testing is basically the tmp2 snap without lib directory of tpm2-tss part being primed.
How can I debug this efficiently?