I'm attempting to mount the memory cgroup with the following command:
sudo mount -t cgroup none /sys/fs/cgroup/memory -o memory
I get the error:
mount: /sys/fs/cgroup/memory: wrong fs type, bad option, bad superblock on none, missing codepage or helper program, or other error.
I have all the cgroup kernel configuration options enabled and can mount the cpu, cpuset and devices cgroups without issue.
What am I missing?
Operating System: Raspberry Pi OS Lite (64-bit)
Kernel Version: 5.10.95
Enabling memory cgroups and disabling cgroupv2 in the kernel commandline file with cgroup_enable=memory systemd.unified_cgroup_hierarchy=0
resolves the issue.