From 2f3f41d0d586bbf4d16969ea13074eddf761d1d1 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Wed, 13 Mar 2013 08:55:11 -0500 Subject: [PATCH] default kmsg symlinking to on, and document lxc.kmsg Signed-off-by: Serge Hallyn --- doc/lxc.conf.sgml.in | 19 +++++++++++++++++++ src/lxc/conf.c | 1 + 2 files changed, 20 insertions(+) diff --git a/doc/lxc.conf.sgml.in b/doc/lxc.conf.sgml.in index b78402533..ce8f79a27 100644 --- a/doc/lxc.conf.sgml.in +++ b/doc/lxc.conf.sgml.in @@ -553,6 +553,25 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + Enable kmsg symlink + + Enable creating /dev/kmsg as symlink to /dev/console. This defaults to 1. + + + + + + + + + Set this to 0 to disable /dev/kmsg symlinking. + + + + + + Mount points diff --git a/src/lxc/conf.c b/src/lxc/conf.c index e30c720ba..85e1c61e4 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -2068,6 +2068,7 @@ struct lxc_conf *lxc_conf_init(void) new->console.name[0] = '\0'; new->maincmd_fd = -1; new->rootfs.mount = default_rootfs_mount; + new->kmsg = 1; lxc_list_init(&new->cgroup); lxc_list_init(&new->network); lxc_list_init(&new->mount_list);