From d6975a2793ba13824cf7e61d52881fb500e6c7cb Mon Sep 17 00:00:00 2001 From: Michael Aldridge Date: Thu, 10 Aug 2017 23:50:14 -0700 Subject: [PATCH] QEMU interpreter must be registered at absolute path --- lib.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.sh.in b/lib.sh.in index 6762d49..845f694 100644 --- a/lib.sh.in +++ b/lib.sh.in @@ -173,7 +173,7 @@ register_binfmt() { # Only register if the map is incomplete if [ ! -f /proc/sys/fs/binfmt_misc/qemu-$_cpu ] ; then - echo ":qemu-$_cpu:M::$_magic:$_mask:$QEMU_BIN:" > /proc/sys/fs/binfmt_misc/register 2>/dev/null + echo ":qemu-$_cpu:M::$_magic:$_mask:/usr/bin/$QEMU_BIN:" > /proc/sys/fs/binfmt_misc/register 2>/dev/null fi # If the static binary isn't in the chroot then the chroot will