We’re thinking about setting security.nesting=true by default to address this issue in snapcraft, rockcraft et al, but the question is - do we know which ubuntu/systemd versions require the flag to be set? Or do I need to just set it on all of our build containers across the board?
it works locally (noble), but it fails in our CI (focal)
This seems to be more the specific problem, that you’re using Focal host.
This is because systemd v256 doesn’t support cgroupv1 anymore, so even with security.nesting=true, Oracular containers on a Focal host won’t work (without the HWE kernel).
Thanks for looking into this with me, hope you had a good break!
The craft-* tools (snapcraft, charmcraft, etc) need to support running on Focal hosts. So it sounds like, if the host is Focal, we should be able set systemd.unified_cgroup_hierarchy=1 to get functioning systemd in our guests, provided the host is using the HWE kernel 5.15?