RFC: Comfy - a CLI framework to bring the Ubuntu cloud feeling to snappy Ubuntu Core

Scott Moser scott.moser at canonical.com
Wed Feb 4 14:16:57 UTC 2015


On Wed, 28 Jan 2015, Scott Moser wrote:

> On Tue, 13 Jan 2015, Alexander Sack wrote:
>
> > Good morning all,
> My suggestion is to move the "real /lib" to /snappy/lib, and then the
> container can have access to the entire filesystem without collisions.
> When you run 'snappy' that is provided by ubuntu core, you'll pick it up
> out of /snappy/bin the loader that loads it will be
> /lib64/ld-linux-x86-64.so.2 .

I thought a bit more about this, and it does work really well for 1
"package" (or cohesive sets of packages) and 1 "core".  Where the core
delegates itself to /snappy and the package gets almost full control of /.

It seems to fall apart though if you want 2 packages and 1 core.  Each
package(or package set) would think they "own" the /.  While namespace
tricks could be done to make each application run in a namespace where it
owned /, it would make some things difficult.

Ie, if we had a "comfy" package that provided 'pastebinit', and a "debug
tools" that provided 'strace', then running:
  strace pastebinit
would involve 2 namespace  changes (one into 'strace' and one into
'pastebinit'). I dont see any problems with that one per-say, but it is
definitely more complex than I originally thought.



>
> What if, instead of assuming we have to make the *huge* relocate the
> *huge* set of packages
>
> --
> snappy-devel mailing list
> snappy-devel at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snappy-devel
>
>



More information about the snappy-devel mailing list