From c8d6afe2cce0b45200b0146c838f1d5d9f1442dc Mon Sep 17 00:00:00 2001 From: Zolfa Date: Fri, 7 Oct 2022 10:59:07 +0000 Subject: [PATCH] lxc-auto: do not touch cgroups Apparently it is no longer needed to mount systemd cgroup with cgroup v2 systems. --- utils/lxc/files/lxc-auto.init | 6 ------ 1 file changed, 6 deletions(-) diff --git a/utils/lxc/files/lxc-auto.init b/utils/lxc/files/lxc-auto.init index 7655a374f..74fcf51ee 100755 --- a/utils/lxc/files/lxc-auto.init +++ b/utils/lxc/files/lxc-auto.init @@ -62,13 +62,7 @@ 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