From 12be30227da05830352a6849d1cd75b6a1cd3954 Mon Sep 17 00:00:00 2001 From: Coia Prant Date: Wed, 5 Nov 2025 07:38:59 +0000 Subject: [PATCH] lxc: lxc-autp: don't mount systemd cgroup v1 Mounting systemd cgroup v1 when the user has not enabled cgroup v1 will cause lxc to be downgraded from cgroup v2 to cgroup v1. Enabling cgroup v1 is not mandatory for modern systems, users of older systems should mount it manually. Signed-off-by: Coia Prant --- 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 14fe2c509b87b..b325e643dd303 100755 --- a/utils/lxc/files/lxc-auto.init +++ b/utils/lxc/files/lxc-auto.init @@ -62,12 +62,6 @@ 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 - start }