[lxc-devel] [lxc/master] Trigger the mounting of shm file system

Rachid-Koucha on Github lxc-bot at linuxcontainers.org
Mon Mar 16 18:10:10 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 465 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200316/80437d12/attachment.bin>
-------------- next part --------------
From 078c676f4dc08063571ab0d866a3335126ccc483 Mon Sep 17 00:00:00 2001
From: Rachid Koucha <47061324+Rachid-Koucha at users.noreply.github.com>
Date: Mon, 16 Mar 2020 19:10:00 +0100
Subject: [PATCH] Trigger the mounting of shm file system

shm file system was not mounted because of the "/" in :
lxc.mount.entry = shm /dev/shm tmpfs defaults 0 0

Signed-off-by: Rachid Koucha <rachid.koucha at gmail.com>
---
 templates/lxc-busybox.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/lxc-busybox.in b/templates/lxc-busybox.in
index 27d19c2b34..2d8e64c4d8 100644
--- a/templates/lxc-busybox.in
+++ b/templates/lxc-busybox.in
@@ -236,7 +236,7 @@ lxc.cap.drop = sys_module mac_admin mac_override sys_time
 #lxc.apparmor.profile = unconfined
 
 lxc.mount.auto = cgroup:mixed proc:mixed sys:mixed
-lxc.mount.entry = shm /dev/shm tmpfs defaults 0 0
+lxc.mount.entry = shm dev/shm tmpfs defaults 0 0
 EOF
 
   libdirs="\


More information about the lxc-devel mailing list