From: Serge Hallyn Date: Tue, 15 Mar 2016 21:43:44 +0000 (-0700) Subject: nesting: document how to enable nesting in container configurations X-Git-Tag: lxc-2.0.0.rc11~6^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=49a2ed808cc2b53425d0fee55e9fc563dd961bf6;p=thirdparty%2Flxc.git nesting: document how to enable nesting in container configurations Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am index 0861fa3a8..f361c3fcb 100644 --- a/src/lxc/Makefile.am +++ b/src/lxc/Makefile.am @@ -145,6 +145,7 @@ AM_CFLAGS=-I$(top_srcdir)/src \ -DLXCINITDIR=\"$(LXCINITDIR)\" \ -DLIBEXECDIR=\"$(LIBEXECDIR)\" \ -DLXCTEMPLATEDIR=\"$(LXCTEMPLATEDIR)\" \ + -DLXCTEMPLATECONFIG=\"$(LXCTEMPLATECONFIG)\" \ -DLOGPATH=\"$(LOGPATH)\" \ -DLXC_DEFAULT_CONFIG=\"$(LXC_DEFAULT_CONFIG)\" \ -DLXC_USERNIC_DB=\"$(LXC_USERNIC_DB)\" \ diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index bb34bcd80..c11ffe064 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -1375,6 +1375,9 @@ static bool prepend_lxc_header(char *path, const char *t, char *const argv[]) fprintf(f, "\n"); #endif fprintf(f, "# For additional config options, please look at lxc.container.conf(5)\n"); + fprintf(f, "\n# Uncomment the following line to support nesting containers:\n"); + fprintf(f, "#lxc.include = " LXCTEMPLATECONFIG "/nesting.conf\n"); + fprintf(f, "# (Be aware this has security implications)\n\n"); if (fwrite(contents, 1, flen, f) != flen) { SYSERROR("Writing original contents"); free(contents);