Building Armbian using Ubuntu (jammy) in a systemd-nspawn container
https://gist.github.com/ag88/05245121cce37cb8f029424a20752e35
Special thanks goes to
@Gunjan Gupta
for the tip on PREFER_DOCKER=no
Updated section on loop devices in systemd-nspawn container
https://gist.github.com/ag88/05245121cce37cb8f029424a20752e35
Currently systemd-nspawn do not support loop devices needed in the compile.sh build. This section documents some workarounds to create loop devices in a systemd-nspawn container. Use this shell script to start systemd-nspawn
#!/usr/bin/bash
sudo systemd-nspawn -b --capability=CAP_MKNOD \
--property=DeviceAllow="block-loop rwm" \
--property=DeviceA