From: Daniel Lezcano Date: Wed, 12 May 2010 21:44:28 +0000 (+0200) Subject: add a configure option to set a rootfs mount point X-Git-Tag: lxc-0.7.0~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=196db713a9ab0479d1e695aa428577abedcbfa58;p=thirdparty%2Flxc.git add a configure option to set a rootfs mount point Add a configure option to set a mount point path when using a rootfs, that will replace the actual behavior which creates uneeded /tmp/lxc** directories. Signed-off-by: Daniel Lezcano --- diff --git a/configure.ac b/configure.ac index c6cac115d..46e8ff768 100644 --- a/configure.ac +++ b/configure.ac @@ -47,12 +47,21 @@ AC_ARG_WITH([config-path], [lxc configuration repository path] )], [], [with_config_path="${localstatedir}/lib/lxc"]) +AC_ARG_WITH([rootfs-path], + [AC_HELP_STRING( + [--with-rootfs-path=dir], + [lxc rootfs mount point] + )], [], [with_rootfs_path="${libdir}/lxc"]) + AS_AC_EXPAND(LXC_GENERATE_DATE, "$(date)") AS_AC_EXPAND(LXCPATH, "${with_config_path}") +AS_AC_EXPAND(LXCROOTFSMOUNT, "${with_rootfs_path}") AH_TEMPLATE([LXCPATH], [lxc configuration repository]) AH_TEMPLATE([LXCLIBEXECDIR], [lxc executable library path]) +AH_TEMPLATE([LXCROOTFSMOUNT], [lxc default rootfs mount point]) AC_DEFINE_UNQUOTED(LXCPATH, "$LXCPATH") AC_DEFINE_UNQUOTED(LXCLIBEXECDIR, "$LIBEXECDIR") +AC_DEFINE_UNQUOTED(LXCROOTFSMOUNT, "$LXCROOTFSMOUNT") AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h], [],