]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
fix /proc not mounted in debian container
authorDaniel Lezcano <daniel.lezcano@free.fr>
Tue, 22 Jun 2010 22:44:13 +0000 (00:44 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 22 Jun 2010 22:44:13 +0000 (00:44 +0200)
Mount some systemm fs for the container. By default, /proc
is no longer mounted in debian.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
templates/lxc-debian.in

index e3c88836635dc0cf487a1b4cf951345a8e826503..a33f5f8134d38b7f6a40097313fe001741b0407f 100644 (file)
@@ -203,6 +203,11 @@ lxc.cgroup.devices.allow = c 136:* rwm
 lxc.cgroup.devices.allow = c 5:2 rwm
 # rtc
 lxc.cgroup.devices.allow = c 254:0 rwm
+
+# mounts point
+lxc.mount.entry=proc $rootfs/proc proc nodev,noexec,nosuid 0 0
+lxc.mount.entry=devpts $rootfs/dev/pts devpts defaults 0 0
+lxc.mount.entry=sysfs $rootfs/sys sysfs defaults  0 0
 EOF
 
     if [ $? -ne 0 ]; then