[lxc-devel] [lxc/master] lxc-alpine: mount /dev/shm as tmpfs

jirutka on Github lxc-bot at linuxcontainers.org
Wed Oct 12 11:33:54 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 301 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20161012/cb5971fa/attachment.bin>
-------------- next part --------------
From 48938fe71da106587f94654246ea13d284c50291 Mon Sep 17 00:00:00 2001
From: Jakub Jirutka <jakub at jirutka.cz>
Date: Wed, 12 Oct 2016 13:32:18 +0200
Subject: [PATCH] lxc-alpine: mount /dev/shm as tmpfs

Signed-off-by: Jakub Jirutka <jakub at jirutka.cz>
---
 config/templates/alpine.common.conf.in | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/config/templates/alpine.common.conf.in b/config/templates/alpine.common.conf.in
index 55ea3d2..1be61f7 100644
--- a/config/templates/alpine.common.conf.in
+++ b/config/templates/alpine.common.conf.in
@@ -19,5 +19,8 @@ lxc.cap.drop = sys_tty_config
 lxc.cap.drop = syslog
 lxc.cap.drop = wake_alarm
 
-# Mount tmpfs under /run.
+# Mount /run as tmpfs.
 lxc.mount.entry=run run tmpfs rw,nodev,relatime,mode=755 0 0
+
+# Mount /dev/shm as tmpfs; needed for building python and possibly other packages.
+lxc.mount.entry=shm dev/shm tmpfs rw,nodev,noexec,nosuid,relatime,mode=1777,create=dir 0 0


More information about the lxc-devel mailing list