According to a Bug report on ArchLinux (Bug 70329), pam_cgfs does not really support cgroup v2.
- use cgroup v1
- use systemd delegate
Is that correct?
Is the use of systemd delegate intended?
In case pam_cgfs does not support cgroup v2, how to use it then?
According to LXC 4.0 LTS has been released cgroup v2 should be suppported already.
the Arch Wiki lists the following instructions for unpriviledged container support:
Enable the [control groups](https://wiki.archlinux.org/index.php/Control_groups) [PAM](https://wiki.archlinux.org/index.php/PAM) module by modifying `/etc/pam.d/system-login` to additionally contain the following line: session optional pam_cgfs.so -c freezer,memory,name=systemd,unified
Source: Arch Wiki - Linux Containers