[lxc-devel] [PATCH] oracle: Fix running template unprivileged

Stéphane Graber stgraber at ubuntu.com
Wed Jan 15 18:26:46 UTC 2014


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 at ubuntu.com>
---
 config/templates/oracle.userns.conf.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/config/templates/oracle.userns.conf.in b/config/templates/oracle.userns.conf.in
index dec2ae8..892fa1e 100644
--- a/config/templates/oracle.userns.conf.in
+++ b/config/templates/oracle.userns.conf.in
@@ -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
-- 
1.8.5.2



More information about the lxc-devel mailing list