This commit adds a string comparison of "cgroup2" to
cg_test_mounted_fs(). This allows cgroup v2 mounts to pass the
filesystem check and thus cgroups can be created.
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Acked-by: Dhaval Giani <dhaval.giani@oracle.com>
goto done;
}
- while (strcmp(ent->mnt_type, "cgroup") != 0) {
+ while (strcmp(ent->mnt_type, "cgroup") != 0 &&
+ strcmp(ent->mnt_type, "cgroup2") != 0) {
ent = getmntent_r(proc_mount, temp_ent, mntent_buff,
sizeof(mntent_buff));
if (ent == NULL) {