summaryrefslogtreecommitdiffstats
path: root/main/lxc/0001-lxc-alpine-create-dev-shm-before-mounting.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-04-24 08:37:53 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-04-24 08:39:03 +0000
commit73e52ef77532ebfce54826d4b51a23910bea447d (patch)
tree4b358d3d7f76c0a087bd082e07fbda355353c953 /main/lxc/0001-lxc-alpine-create-dev-shm-before-mounting.patch
parent7aefd99110015c105096eb1c6c039673b4c757b3 (diff)
downloadaports-73e52ef77532ebfce54826d4b51a23910bea447d.tar.bz2
aports-73e52ef77532ebfce54826d4b51a23910bea447d.tar.xz
main/lxc: fix /dev/shm in alpine template
Diffstat (limited to 'main/lxc/0001-lxc-alpine-create-dev-shm-before-mounting.patch')
-rw-r--r--main/lxc/0001-lxc-alpine-create-dev-shm-before-mounting.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/main/lxc/0001-lxc-alpine-create-dev-shm-before-mounting.patch b/main/lxc/0001-lxc-alpine-create-dev-shm-before-mounting.patch
new file mode 100644
index 000000000..8fe47f28c
--- /dev/null
+++ b/main/lxc/0001-lxc-alpine-create-dev-shm-before-mounting.patch
@@ -0,0 +1,28 @@
+From 41d325450e2dbd1c5c0f3fdf6171d9a746bd8f5a Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Fri, 24 Apr 2015 10:09:29 +0200
+Subject: [PATCH] lxc-alpine: create /dev/shm before mounting
+
+This is needed for lxc.autodev=1 to work.
+
+Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
+---
+ templates/lxc-alpine.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in
+index 886a838..963c42a 100644
+--- a/templates/lxc-alpine.in
++++ b/templates/lxc-alpine.in
+@@ -251,7 +251,7 @@ lxc.cgroup.devices.allow = c 254:0 rm
+ # mounts point
+ lxc.mount.auto=cgroup:mixed proc:mixed sys:mixed
+ lxc.mount.entry=run run tmpfs nodev,noexec,nosuid,relatime,size=1m,mode=0755 0 0
+-lxc.mount.entry=shm dev/shm tmpfs nodev,nosuid,noexec,mode=1777 0 0
++lxc.mount.entry=shm dev/shm tmpfs nodev,nosuid,noexec,mode=1777,create=dir 0 0
+
+ EOF
+
+--
+2.3.5
+