Hi Çağlar, Serge

This breakage is probably because of a last minute change I asked Serge
about, to keep the arguments to lxc-config the same as the keys in
lxc.conf so the following patch is maybe a better way to fix it:

Signed-off-by: Dwight Engen <dwight.en...@oracle.com>
---

diff --git a/src/lxc/lxc.functions.in b/src/lxc/lxc.functions.in
index ad3d42f..de268df 100644
--- a/src/lxc/lxc.functions.in
+++ b/src/lxc/lxc.functions.in
@@ -25,6 +25,6 @@ bindir=@BINDIR@
 templatedir=@LXCTEMPLATEDIR@
 lxcinitdir=@LXCINITDIR@
 
-lxc_path=`lxc-config default_path`
+lxc_path=`lxc-config lxcpath`
 lxc_vg=`lxc-config lvm_vg`
 lxc_zfsroot=`lxc-config zfsroot`


 
On Tue, 30 Apr 2013 14:55:05 -0400
S.Çağlar Onur <cag...@10ur.org> wrote:

> Signed-off-by: S.Çağlar Onur <cag...@10ur.org>
> ---
>  src/lxc/lxc_config.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/lxc/lxc_config.c b/src/lxc/lxc_config.c
> index a454e07..cf19c7b 100644
> --- a/src/lxc/lxc_config.c
> +++ b/src/lxc/lxc_config.c
> @@ -9,7 +9,7 @@ struct lxc_config_items {
>  
>  struct lxc_config_items items[] =
>  {
> -     { .name = "lxcpath", .fn = &lxc_get_default_config_path, },
> +     { .name = "default_path", .fn =
> &lxc_get_default_config_path, }, { .name = "lvm_vg", .fn =
> &lxc_get_default_lvm_vg, }, { .name = "zfsroot", .fn =
> &lxc_get_default_zfs_root, }, { .name = NULL, },


------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to