]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
add a configure option to set a rootfs mount point
authorDaniel Lezcano <daniel.lezcano@free.fr>
Wed, 12 May 2010 21:44:28 +0000 (23:44 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Wed, 12 May 2010 21:44:28 +0000 (23:44 +0200)
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 <dlezcano@fr.ibm.com>
configure.ac

index c6cac115d5922515cba0599c7d288bb6b10ac4a2..46e8ff768647d8ef103af6eb5bd8e89226a6c3e1 100644 (file)
@@ -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],
                                  [],