Trying to package angband as snap

Mark Shuttleworth mark at ubuntu.com
Wed Jul 27 10:24:27 UTC 2016


Would it be useful to be able to hard-map a set of directories for this
specific snap to subdirectories in the snap writable directory?

Something like this:

  plug:
    interface: overlay-directories
      versioned: [ /var/lib/games/foo, /usr/share/foo ]
      common: [ /etc/foo ]

When that plug is connected, processes in THIS snap see content at that
location which is ACTUALLY in
$WRITABLE/snapd/overlay-directories/var/lib/games/foo for example.

If snaps try to use this mechanism to share content it will fail since
these directories are fake mounts just for those processes, other
processes would see totally different directories.

Would that work, would that be useful? It's sort of a "very specific and
controlled overlay-fs" that works by directory rather than as a true
overlay.

Mark





More information about the Snapcraft mailing list