Getting compilation error

running

❯ ./balena-jetson-orin/balena-yocto-scripts/build/barys \
    --remove-build \
    --development-image \
    --log \
    --shared-downloads /var/cache/yocto/shared-downloads \
    --shared-sstate /var/cache/yocto/sstate-cache \
    -m jetson-orin-nano-devkit-nvme

results in
log.do_image_hostapp_ext4.2117741.txt (13.3 KB)

and running

./balena-yocto-scripts/build/balena-build.sh -d jetson-orin-nano-devkit-nvme -s /var/cache/yocto/ -k -g "-r --rm-work"

results in

❯ cat balena-jetson-orin/build/tmp/work/x86_64-linux/mkfs-hostapp-native/1.0-r0/temp/log.do_compile
DEBUG: Executing shell function do_compile
Sending build context to Docker daemon   5.12kB
Step 1/5 : FROM debian:bullseye
bullseye: Pulling from library/debian
34df401c391c: Pulling fs layer
34df401c391c: Verifying Checksum
34df401c391c: Download complete
34df401c391c: Pull complete
Digest: sha256:a648e10e02af129706b1fb89e1ac9694ae3db7f2b8439aa906321e68cc281bc0
Status: Downloaded newer image for debian:bullseye
 ---> 189a2f977ff1
Step 2/5 : VOLUME /mnt/sysroot/inactive
 ---> Running in 7bdbf2024bc9
Removing intermediate container 7bdbf2024bc9
 ---> 86acc04b7c88
Step 3/5 : RUN apt-get update && apt-get install -y     ca-certificates         iptables
 ---> Running in 1c05927ea8e1
cgroups: cgroup mountpoint does not exist: unknown
WARNING: exit code 1 from a shell command.

@alexgg this seems to have something to do with my build host (Ubuntu-22.04) and Docker cgroups v1 vs. v2, do you have a clue how to solve this?

UPDATE:
Found the answer in following thread;

adding GRUB_CMDLINE_LINUX="systemd.unified_cgroup_hierarchy=0" to /etc/default/grub, running sudo update-grub and rebooting the system works as a temporary solution until cgroupsv2 is supported.