Closed lueschem closed 2 years ago
Currently cross architecture image builds (here amd64 --> arm64) fail on Ubuntu Impish:
foo@bar:~/edi-workspace/edi-cl$ sudo edi -v image create iot-gate-imx8-buster-arm64.yml INFO:root:Load time dictionary: edi_configuration_name: iot-gate-imx8-buster-arm64 edi_configure_remote_target: false edi_create_distributable_image: true edi_current_display: '0' ... I: Extracting liblzma5... I: Extracting zlib1g... INFO:root:Running command: ['chroot', '/home/lueschem/edi-workspace/edi-cl/tmpogz3of8n/rootfs', '/debootstrap/debootstrap', '--second-stage'] /bin/sh: 0: Illegal option -- Error: Command '['chroot', '/home/lueschem/edi-workspace/edi-cl/tmpogz3of8n/rootfs', '/debootstrap/debootstrap', '--second-stage']' returned non-zero exit status 2. For more information increase the log level.
The root cause seems to be this bug: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1947860
Until the issue is fixed, the qemu-user-static package can be downloaded and installed manually from bullseye-backports: https://packages.debian.org/de/bullseye-backports/qemu-user-static
Fixed with qemu-user-static=1:6.0+dfsg-2expubuntu1.1.
Issue
Currently cross architecture image builds (here amd64 --> arm64) fail on Ubuntu Impish:
Reason
The root cause seems to be this bug: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1947860
Workaround
Until the issue is fixed, the qemu-user-static package can be downloaded and installed manually from bullseye-backports: https://packages.debian.org/de/bullseye-backports/qemu-user-static