I'm customizing a Raspbian installation using qemu
, i.e.:
systemd-nspawn -q --bind /usr/bin/qemu-arm-static -D $MOUNTPATH /bin/bash << EOF
DEBIAN_FRONTEND=noninteractive
export DEBIAN_FRONTEND
apt-get install -y samba
EOF
My host machine runs Debian 9.9 and the target is Raspbian Buster. When I run such a command I get a lot of these errors:
ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
It seems it cannot expand the ${PLATFORM}
variable.
I'm not sure if this error comes from the host machine or the emulated target. Anyway I tried to:
export PLATFORM=v7l
in both host terminal and nspawn
script, but nothing has changed.
I also read the output of system-nspawn --help
but I didn't find anything related to the platform.
What should I need to do?