[lxc-devel] [PATCH 1/2] change the rootfs mount location and add the README
Daniel Lezcano
daniel.lezcano at free.fr
Thu May 27 10:47:15 UTC 2010
Previous path was $libdir/lxc, changed to $libdir/lxc/rootfs.
Added a README file to be placed in this directory, describing
the purpose of this empty directory. Having a file to be installed
in this directory makes the Makefile to automatically create the
directory at install time.
Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
---
configure.ac | 4 +++-
doc/Makefile.am | 4 ++--
doc/rootfs/Makefile.am | 3 +++
doc/rootfs/README | 4 ++++
4 files changed, 12 insertions(+), 3 deletions(-)
create mode 100644 doc/rootfs/Makefile.am
create mode 100644 doc/rootfs/README
diff --git a/configure.ac b/configure.ac
index 83e01d5..8f3f633 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,7 +51,7 @@ AC_ARG_WITH([rootfs-path],
[AC_HELP_STRING(
[--with-rootfs-path=dir],
[lxc rootfs mount point]
- )], [], [with_rootfs_path="${libdir}/lxc"])
+ )], [], [with_rootfs_path="${libdir}/lxc/rootfs"])
AS_AC_EXPAND(LXC_GENERATE_DATE, "$(date)")
AS_AC_EXPAND(LXCPATH, "${with_config_path}")
@@ -119,6 +119,8 @@ AC_CONFIG_FILES([
doc/common_options.sgml
doc/see_also.sgml
+ doc/rootfs/Makefile
+
doc/examples/Makefile
doc/examples/lxc-macvlan.conf
doc/examples/lxc-vlan.conf
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 54e5f22..2ac5225 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,5 +1,5 @@
-SUBDIRS = examples
-DIST_SUBDIRS = examples
+SUBDIRS = examples rootfs
+DIST_SUBDIRS = examples rootfs
EXTRA_DIST = \
FAQ.txt \
diff --git a/doc/rootfs/Makefile.am b/doc/rootfs/Makefile.am
new file mode 100644
index 0000000..98fb0e0
--- /dev/null
+++ b/doc/rootfs/Makefile.am
@@ -0,0 +1,3 @@
+READMEdir=@LXCROOTFSMOUNT@
+
+README_DATA=README
\ No newline at end of file
diff --git a/doc/rootfs/README b/doc/rootfs/README
new file mode 100644
index 0000000..2d94ec1
--- /dev/null
+++ b/doc/rootfs/README
@@ -0,0 +1,4 @@
+This directory must exist, even though no contents are ever placed
+here. It is used to temporary mount the rootfs of lxc in a private
+mount namespace only visible by the processes running in the
+container.
\ No newline at end of file
--
1.7.0.4
More information about the lxc-devel
mailing list