]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
oracle: Fix running template unprivileged
authorStéphane Graber <stgraber@ubuntu.com>
Wed, 15 Jan 2014 18:25:48 +0000 (13:25 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 15 Jan 2014 18:34:08 +0000 (13:34 -0500)
Without this /dev/console won't exist and upstart will fail to start any
job marking as "console output" including the rather important rcS.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
config/templates/oracle.userns.conf.in

index dec2ae87e0bb3f4a0da35125e130c3a3379f0abb..892fa1eb6a4ae3bd45012082a68f5fc2afc975d9 100644 (file)
@@ -6,6 +6,7 @@ lxc.cgroup.devices.allow =
 lxc.devttydir =
 
 # Extra bind-mounts for userns
+lxc.mount.entry = /dev/console dev/console none bind,create=file 0 0
 lxc.mount.entry = /dev/null dev/null none bind,create=file 0 0
 lxc.mount.entry = /dev/zero dev/zero none bind,create=file 0 0
 lxc.mount.entry = /dev/full dev/full none bind,create=file 0 0