]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
templates: gentoo.common: Add /dev/shm tmpfs mount entry
authorMarkos Chandras <hwoarang@gentoo.org>
Thu, 12 Mar 2015 20:52:11 +0000 (20:52 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 10 Apr 2015 15:27:40 +0000 (11:27 -0400)
/dev/shm needs to be mounted as tmpfs. It's needed by python
and possibly other packages.

Signed-off-by: Markos Chandras <hwoarang@gentoo.org>
config/templates/gentoo.common.conf.in

index ca3ffc160da8a8e19cabe8fdf720fb505910b8dc..49cd411b61785959938e74bcb3fdf788888b0584 100644 (file)
@@ -21,3 +21,7 @@ lxc.cgroup.devices.allow = c 10:232 rwm
 ## To use loop devices, copy the following line to the container's
 ## configuration file (uncommented).
 #lxc.cgroup.devices.allow = b 7:* rwm
+
+# /dev/shm needs to be mounted as tmpfs. It's needed by python (bug #496328)
+# and possibly other packages.
+lxc.mount.entry = none dev/shm tmpfs rw,nosuid,nodev,create=dir