[lxc-devel] Q: general lxc architecture

Andrian Nord nightnord at gmail.com
Tue Nov 10 12:46:17 UTC 2009


On Tue, Nov 10, 2009 at 11:35:48AM +0100, Daniel Lezcano wrote:
> Hi Michael,
> 
> (cc'ed lxc-devel@)
> 
> Your analysis is correct :)
> This is something we are enhancing.  The different files in 
> /var/lib/lxc/*  were removed and only the config file is stored now.
> 
> You can check the repository:
> http://lxc.git.sourceforge.net/git/gitweb.cgi?p=lxc/lxc;a=shortlog
> 

Heh, about that: what about new release anytime soon? Current stable
version, IMO, rather unusable, but our distro maintainers refuses to add
any live packages into tree (Gentoo).

And yes, maybe it will be more logical to keep configs into /etc/lxc/?

Or, maybe, just use --with-config-path=/some/path switch into configure,
which could be overridden as user wants to? Something like this one (in
assumption, that this is up to user to create corresponding directory):

(I should write this anytime when I want to post patch?)

Signed-off-by: Andrian Nord <NightNord at gmail.com>

diff --git a/configure.ac b/configure.ac
index a9ca211..5e4ac46 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,9 +33,15 @@ AS_AC_EXPAND(LIBEXECDIR, $libexecdir)
 AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
 AS_AC_EXPAND(DATADIR, $datadir)
 AS_AC_EXPAND(LOCALSTATEDIR, $localstatedir)
-AS_AC_EXPAND(LXCPATH, "${localstatedir}/lib/lxc")
-AS_AC_EXPAND(LXC_GENERATE_DATE, "$(date)")
 
+AC_ARG_WITH([config-path],
+	[AC_HELP_STRING(
+		[--with-config-path=dir],
+		[lxc configuration repository]
+	)], [], [with_config_path="${localstatedir}/lib/lxc"])
+
+AS_AC_EXPAND(LXC_GENERATE_DATE, "$(date)")
+AS_AC_EXPAND(LXCPATH, "${with_config_path}")
 AH_TEMPLATE([LXCPATH], [lxc configuration repository])
 AH_TEMPLATE([LXCLIBEXECDIR], [lxc executable library path])
 AC_DEFINE_UNQUOTED(LXCPATH, "$LXCPATH")




More information about the lxc-devel mailing list