"I'm sure you said cgroup2"
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
mountflags |= MS_REMOUNT;
}
- if (mount(source?:(is_bind?new:NULL), new, filesystemtype, mountflags, optstr)) {
+ const char *hack_fstype = ((!filesystemtype || strcmp(filesystemtype, "cgroup"))?filesystemtype:"cgroup2");
+ if (mount(source?:(is_bind?new:NULL), new, hack_fstype, mountflags, optstr)) {
if (error)
ERROR("failed to mount %s %s: %m\n", source, new);