[lxc-devel] [PATCH] lxc-plamo: Set lxc.autodev to 0

KATOH Yasufumi karma at jazz.email.ne.jp
Tue Jan 27 09:48:14 UTC 2015


At this time, a container that is created by lxc-plamo can't work with
lxc.autodev=1

Signed-off-by: KATOH Yasufumi <karma at jazz.email.ne.jp>
---
 config/templates/plamo.common.conf.in | 3 +++
 config/templates/plamo.userns.conf.in | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/config/templates/plamo.common.conf.in b/config/templates/plamo.common.conf.in
index 22d9207..9b0d02b 100644
--- a/config/templates/plamo.common.conf.in
+++ b/config/templates/plamo.common.conf.in
@@ -8,6 +8,9 @@ lxc.mount.entry = none dev/shm tmpfs nosuid,nodev,noexec,mode=1777 0 0
 # Doesn't support consoles in /dev/lxc/
 lxc.devttydir =
 
+# /dev/* is created manually by template
+lxc.autodev = 0
+
 # Extra cgroup device access
 ## rtc
 lxc.cgroup.devices.allow = c 254:0 rm
diff --git a/config/templates/plamo.userns.conf.in b/config/templates/plamo.userns.conf.in
index 707bb30..bf50936 100644
--- a/config/templates/plamo.userns.conf.in
+++ b/config/templates/plamo.userns.conf.in
@@ -1,2 +1,5 @@
 # This derives from the global userns config
 lxc.include = @LXCTEMPLATECONFIG@/userns.conf
+
+# /dev/* is created manually by template
+lxc.autodev = 0
\ No newline at end of file
-- 
2.2.1



More information about the lxc-devel mailing list