[lxc-devel] [lxd/master] lxc/containers: Fix cgns-less fallback

stgraber on Github lxc-bot at linuxcontainers.org
Fri Feb 28 11:33:13 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200228/7896d97d/attachment.bin>
-------------- next part --------------
From 46254cc13a81baa4957e303f4eddf5b848a4b2fc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Fri, 28 Feb 2020 06:32:43 -0500
Subject: [PATCH] lxc/containers: Fix cgns-less fallback
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 lxd/container_lxc.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lxd/container_lxc.go b/lxd/container_lxc.go
index 032dfca40d..9b13c10503 100644
--- a/lxd/container_lxc.go
+++ b/lxd/container_lxc.go
@@ -794,6 +794,8 @@ func (c *containerLXC) initLXC(config bool) error {
 		} else {
 			mounts = append(mounts, "cgroup:mixed")
 		}
+	} else {
+		mounts = append(mounts, "cgroup:mixed")
 	}
 
 	err = lxcSetConfigItem(cc, "lxc.mount.auto", strings.Join(mounts, " "))


More information about the lxc-devel mailing list