mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
619de9773e
This removes package dependency on cgroup, as following commits make cgroup use fscommon, which would result in dependency cycle. The code to find out memory cgroup root is not really needed, as 99% of test envrionments will have it at /sys/fs/cgroup/memory. If not, that means we're either on cgroupv2 or on some very custom system, so just skip the test. The code that checks if we're on cgroupv2 is replaced by the check of the particular v1 control file. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>