[lxc-devel] making lxcpath a real path?

Serge Hallyn serge.hallyn at ubuntu.com
Wed Dec 4 16:06:55 UTC 2013


Exporting the LXCPATH itself to hook scripts seems good.  I don't see
the value in having multiple LXCPATHs in the hook scripts.

As for allowing ':'-separated paths in LXCPATH, it shouldn't interfere
with anything we have now, so if someone wants to work on the patch
I'll look at it, but really I don't see advantages to it.  And I do
see negatives.  Think about user jschmoe who has
LXCPATH=/home/jschmoe/lxcbase:/var/lib/lxc.
Now sudo'd to root he does an lxc-create.  It'll end up in /home/jschmoe/lxcbase
instead of /var/lib/lxc.

I haven't *really* thought through it though, so a well-written patch
with a good description would be fine.

More useful IMO would be per-user lxc.conf and default.conf files in a
standard location.  So $HOME/.local/share/lxc/lxc.conf has
LXCPATH=$HOME/lxcbase, and $HOME/.local/share/lxc/default.conf has
appropriate lxc.idmap entries.  A patch like that would also be very
welcome.

-serge




More information about the lxc-devel mailing list