]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix creation of dev/mqueue and dev/shm on Gentoo
authorDennis Schridde <devurandom@gmx.net>
Thu, 11 Jun 2015 13:21:19 +0000 (15:21 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 28 Aug 2015 22:02:16 +0000 (18:02 -0400)
The dev/mqueue and dev/shm directories do not exist when using lxc.autodev, thus they have to be created upon mount.

Signed-off-by: Dennis Schridde <devurandom@gmx.net>
config/templates/gentoo.moresecure.conf.in

index 432a9fb6fbd99c9b4ec965d788af5e8878a1a7e9..709f23877184ed2a143d661db8e6b8b2a8cac731 100644 (file)
@@ -7,8 +7,8 @@
 # do not mount sysfs, see http://blog.bofh.it/debian/id_413
 # lxc.mount.entry=sys sys sysfs rw 0 0
 lxc.mount.entry=proc proc proc ro,nodev,noexec,nosuid 0 0
-lxc.mount.entry=mqueue dev/mqueue mqueue rw,nodev,noexec,nosuid 0 0
-lxc.mount.entry=shm dev/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0
+lxc.mount.entry=mqueue dev/mqueue mqueue rw,nodev,noexec,nosuid,create=dir 0 0
+lxc.mount.entry=shm dev/shm tmpfs rw,nosuid,nodev,noexec,relatime,create=dir 0 0
 lxc.mount.entry=run run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
 
 # console access