]> git.proxmox.com Git - pve-common.git/commit
cgroup: get mode by checking /sys/fs/cgroup mount point
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 21 Sep 2022 07:53:13 +0000 (09:53 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Sep 2022 07:59:31 +0000 (09:59 +0200)
commit55b6de701157e56c43c2385881a8b0fb157b4bf2
tree34a16f14902601b21f58891f53c31aa33c00e4e0
parent2cae54b99d46bd8b7c446800589a7b3948bdd84d
cgroup: get mode by checking /sys/fs/cgroup mount point

Since even in pure unified layouts there may be a `name=systemd` v1
cgroup mounted additionally (manually or potentially via
systemd-nspawn apparently), we should check what's actually mounted
at `/sys/fs/cgroup` rather than whether v1 cgroups exist.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/CGroup.pm