Skip to content

Commit

Permalink
Fix: Print Warning on QEMU binary fmt loading err
Browse files Browse the repository at this point in the history
When binary formats of the host platform are tried to be
loaded, the update-binfmts command fails.
This error is now caught and a respective warning is
printed to the user.

(closes #35)
  • Loading branch information
jonashoechst committed Oct 4, 2021
1 parent 5336a30 commit 17c7cdb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/qemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ qemu_setup() {
QEMU_MOUNTS=("${QEMU_MOUNTS[@]}" "${CHROOT_MOUNT}/${qemu_path}")

# enable arch
update-binfmts --enable "qemu-${arch}"
update-binfmts --enable "qemu-${arch}" || \
echo -e "\033[0;33m### Warning: Architecture ${arch} might not be supported.\033[0m"
done
}

Expand Down

0 comments on commit 17c7cdb

Please sign in to comment.