git » mk-builders.git » main » tree

[main] / armlfs.sh

1
2
3
4
5
6
7
#!/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