mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 14:41:31 +02:00
For execution of the compiled binaries in /build/arm64-usr we rely on qemu-user binfmt emulation and have to tell it where the root is with QEMU_LD_PREFIX because build systems don't chroot into /build/arm64-usr themselves (which also works just by chance on amd64 because we have similar glibc versions and so on). The env var setup was done in /etc/profile.d/qemu-aarch64.sh but is now not read anymore since the container runs the shell not as login shell. Add the login options to the bash and su calls when starting the container.