From 9f43594e3a28deeea18cfa40acd0b1388e64f600 Mon Sep 17 00:00:00 2001 From: Robert Marko Date: Tue, 19 May 2020 00:15:28 +0200 Subject: lxc: bump to 4.0.2 Signed-off-by: Robert Marko Signed-off-by: Marijan Svalina Signed-off-by: Luka Perkov --- utils/lxc/files/lxc-auto.init | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'utils/lxc/files') diff --git a/utils/lxc/files/lxc-auto.init b/utils/lxc/files/lxc-auto.init index 937f08269..53abff9f1 100755 --- a/utils/lxc/files/lxc-auto.init +++ b/utils/lxc/files/lxc-auto.init @@ -58,3 +58,14 @@ stop() { fi } +#Export systemd cgroups +boot() { + if [ ! -d /sys/fs/cgroup/systemd ]; then + mkdir -p /sys/fs/cgroup/systemd + mount -t cgroup -o rw,nosuid,nodev,noexec,relatime,none,name=systemd cgroup /sys/fs/cgroup/systemd + fi + + if [ ! -d /run ]; then + ln -s /var/run /run + fi +} -- cgit v1.2.3