#!/bin/sh
CPUPERC=$(( $(nproc) * 90))%
LA=
for dev in /dev/loop*; do
LA+="--bind=$dev "
done
sudo setarch armv7l systemd-nspawn --property=MemoryMax=85% --property=CPUQuota=$CPUPERC --bind=/dev/fuse --property="DeviceAllow=/dev/loop-control rwm" --property="DeviceAllow=block-loop rwm" $LA --capability=CAP_MKNOD -b -D armlfs