qemu-user-static: fix --credentials, add --fix-binary

This allows qemu interpreters to be used transparently within
chroots, without requiring the interpreter in the chroot.
This commit is contained in:
q66 2022-09-29 22:21:49 +00:00
parent 3fe130fbb3
commit 58851093c5

View file

@ -2,7 +2,7 @@
# This package should be updated together with qemu
pkgname=qemu-user-static
version=7.0.0
revision=1
revision=2
wrksrc="qemu-${version}"
build_style=configure
configure_args="--prefix=/usr --sysconfdir=/etc --libexecdir=/usr/libexec
@ -105,7 +105,7 @@ esac
for _fmt in $_fmts; do
eval "case $_fmt in $_omit) magic= ;; *) magic=\"\$_${_fmt}_magic\" mask=\"\$_${_fmt}_mask\" ;; esac"
if [ "$magic" ]; then
binfmts+="/usr/bin/qemu-$_fmt-static --magic $magic --mask $mask --offset 0 --credential yes
binfmts+="/usr/bin/qemu-$_fmt-static --magic $magic --mask $mask --offset 0 --credentials yes --fix-binary yes
"
fi
done