Hi, I am packing a pre-compiled application into a snap, this app needs to write to /persistent/log
and cannot be changed, I tried by:
...
layout:
/persistent/log:
symlink: $SNAP_DATA/log
But as soon as I compile I get:
Cannot pack snap file: Command [snap, pack, --check-skeleton, PosixPath(/xxxx/xxxxx/xxxx/xxxx/xxxx)]' returned non-zero exit status 1. (error: cannot validate snap "xxxx-xxxx": layout "/persistent/log" defines a new top-level directory "/persistent")
How can I workaround this?