Test results on different series:
* Noble
- Using cgroup2 and working well.
* Jammy
- Using cgroup2 and working well.
* Focal
- Using cgroup1 as the check is not working.
- cgroup2 exists, but it complains about "Read-only file system" when trying to create a directory.
* Bionic
- Using cgroup1 as the check is not working.
- cgroup2 exists, but it complains about "Read-only file system" when trying to create a directory.
* Xenial
- Using cgroup1 and working well.
* Trusty
- Using cgroup1 and working well.
On Bionic and Focal there are multiple entries when trying to run `grep "/sys/fs/cgroup" /proc/mounts` therefore the check will fail.
Test results on different series:
* Noble
- Using cgroup2 and working well.
* Jammy
- Using cgroup2 and working well.
* Focal
- Using cgroup1 as the check is not working.
- cgroup2 exists, but it complains about "Read-only file system" when trying to create a directory.
* Bionic
- Using cgroup1 as the check is not working.
- cgroup2 exists, but it complains about "Read-only file system" when trying to create a directory.
* Xenial
- Using cgroup1 and working well.
* Trusty
- Using cgroup1 and working well.
On Bionic and Focal there are multiple entries when trying to run `grep "/sys/fs/cgroup" /proc/mounts` therefore the check will fail.
Bionic: nodev,noexec, mode=755 0 0 cgroup/ unified cgroup2 rw,nosuid, nodev,noexec, relatime 0 0 cgroup/ systemd cgroup rw,nosuid, nodev,noexec, relatime, xattr,name= systemd 0 0 cgroup/ perf_event cgroup rw,nosuid, nodev,noexec, relatime, perf_event 0 0 cgroup/ blkio cgroup rw,nosuid, nodev,noexec, relatime, blkio 0 0 nodev,noexec, relatime, rdma 0 0 cgroup/ cpuset cgroup rw,nosuid, nodev,noexec, relatime, cpuset 0 0 cgroup/ cpu,cpuacct cgroup rw,nosuid, nodev,noexec, relatime, cpu,cpuacct 0 0 cgroup/ freezer cgroup rw,nosuid, nodev,noexec, relatime, freezer 0 0 nodev,noexec, relatime, pids 0 0 cgroup/ memory cgroup rw,nosuid, nodev,noexec, relatime, memory 0 0 cgroup/ hugetlb cgroup rw,nosuid, nodev,noexec, relatime, hugetlb 0 0 cgroup/ net_cls, net_prio cgroup rw,nosuid, nodev,noexec, relatime, net_cls, net_prio 0 0 cgroup/ devices cgroup rw,nosuid, nodev,noexec, relatime, devices 0 0
tmpfs /sys/fs/cgroup tmpfs ro,nosuid,
cgroup /sys/fs/
cgroup /sys/fs/
cgroup /sys/fs/
cgroup /sys/fs/
cgroup /sys/fs/cgroup/rdma cgroup rw,nosuid,
cgroup /sys/fs/
cgroup /sys/fs/
cgroup /sys/fs/
cgroup /sys/fs/cgroup/pids cgroup rw,nosuid,
cgroup /sys/fs/
cgroup /sys/fs/
cgroup /sys/fs/
cgroup /sys/fs/
Focal: nodev,noexec, mode=755 0 0 cgroup/ unified cgroup2 rw,nosuid, nodev,noexec, relatime, nsdelegate 0 0 cgroup/ systemd cgroup rw,nosuid, nodev,noexec, relatime, xattr,name= systemd 0 0 cgroup/ freezer cgroup rw,nosuid, nodev,noexec, relatime, freezer 0 0 cgroup/ cpu,cpuacct cgroup rw,nosuid, nodev,noexec, relatime, cpu,cpuacct 0 0 cgroup/ perf_event cgroup rw,nosuid, nodev,noexec, relatime, perf_event 0 0 cgroup/ cpuset cgroup rw,nosuid, nodev,noexec, relatime, cpuset 0 0 nodev,noexec, relatime, rdma 0 0 cgroup/ net_cls, net_prio cgroup rw,nosuid, nodev,noexec, relatime, net_cls, net_prio 0 0 nodev,noexec, relatime, pids 0 0 cgroup/ devices cgroup rw,nosuid, nodev,noexec, relatime, devices 0 0 cgroup/ hugetlb cgroup rw,nosuid, nodev,noexec, relatime, hugetlb 0 0 cgroup/ memory cgroup rw,nosuid, nodev,noexec, relatime, memory 0 0 cgroup/ blkio cgroup rw,nosuid, nodev,noexec, relatime, blkio 0 0
tmpfs /sys/fs/cgroup tmpfs ro,nosuid,
cgroup2 /sys/fs/
cgroup /sys/fs/
cgroup /sys/fs/
cgroup /sys/fs/
cgroup /sys/fs/
cgroup /sys/fs/
cgroup /sys/fs/cgroup/rdma cgroup rw,nosuid,
cgroup /sys/fs/
cgroup /sys/fs/cgroup/pids cgroup rw,nosuid,
cgroup /sys/fs/
cgroup /sys/fs/
cgroup /sys/fs/
cgroup /sys/fs/