[lxc-devel] [PATCH 2/1] lxc_monitor_open: prepend lxcpath

2013-02-14 Thread Serge Hallyn
This is needed for lxc_wait and lxc_monitor to handle lxcpath. However, the full path name is limited to 108 bytes. Should we use a md5sum of the lxcpath instead of the path itself? In any case, with this patch, lxc-wait and lxc-monitor work right with respect to multiple lxcpaths. The lxcpath

[lxc-devel] [PATCH 1/1] introduce --lxcpath cmdline option, and make default_lxc_path() return const char *

2013-02-14 Thread Serge Hallyn
For the lxc-* C binaries, introduce a -P|--lxcpath command line option to override the system default. With this, I can lxc-create -t ubuntu -n r1 lxc-create -t ubuntu -n r1 -P /home/ubuntu/lxcbase lxc-start -n r1 -d lxc-start -n r1 -d -P /home/ubuntu/lxcbase