change the rootfs mount location and add the README

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@fr.ibm.com>
This commit is contained in:
Daniel Lezcano 2010-05-27 14:27:13 +02:00 committed by Daniel Lezcano
parent b8da590f0e
commit baf6671fd3
4 changed files with 12 additions and 3 deletions

View File

@ -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

View File

@ -1,5 +1,5 @@
SUBDIRS = examples
DIST_SUBDIRS = examples
SUBDIRS = examples rootfs
DIST_SUBDIRS = examples rootfs
EXTRA_DIST = \
FAQ.txt \

3
doc/rootfs/Makefile.am Normal file
View File

@ -0,0 +1,3 @@
READMEdir=@LXCROOTFSMOUNT@
README_DATA=README

4
doc/rootfs/README Normal file
View File

@ -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.