Sorry for the brevity before. I tested this with systemd 23{5,6}
inside xenial and artful containers which is really the only case
where it matters.
A systemd with my patch applied would happily:
1. skip over undelegated /sys/fs/cgroup/unified mountpoints
(e07aefbd675b651f8d45b5fb458f2747b04d6e04).
2. skip over undelegated pur cgroup2 mountpoints at /sys/fs/cgroup
(2d56b80a1855836abf1d7458394c345ad9d55382)
3. remove any empty mountpoints created for case 1. and 2.
(1ff654e28b7b8e7d0a0be33522a84069ac6b07c0)
Sorry for the brevity before. I tested this with systemd 23{5,6}
inside xenial and artful containers which is really the only case
where it matters.
A systemd with my patch applied would happily: cgroup/ unified mountpoints b651f8d45b5fb45 8f2747b04d6e04) . 5836abf1d745839 4c345ad9d55382) b8e7d0a0be33522 a84069ac6b07c0)
1. skip over undelegated /sys/fs/
(e07aefbd675
2. skip over undelegated pur cgroup2 mountpoints at /sys/fs/cgroup
(2d56b80a185
3. remove any empty mountpoints created for case 1. and 2.
(1ff654e28b7
Thanks for backporting these patches!
Christian