Closed mook-as closed 2 years ago
alpine-lima-std-3.16.0-x86_64.iso
alpine
tar.gz
lib/ld-musl-aarch64.so.1
/lib/ld-musl-aarch64.so.1
bin/busybox
uname
./uname -a
Linux lima-alpine 5.15.57-0-virt #1-Alpine SMP Fri, 29 Jul 2022 07:15:20 +0000 aarch64 Linux
a: applet not found
I believe https://github.com/tonistiigi/binfmt/commit/c5e21394c9378124b17cdf9c4a1c09b119cfba17 added a patch to the qemu in use to assume the preserve-argv flag in binfmt_misc when no flags are found; I assume that code is somehow being triggered.
preserve-argv
binfmt_misc
Workaround (and likely fix): Add binfmt_flags="POCF" to /etc/conf.d/qemu-binfmt.
binfmt_flags="POCF"
/etc/conf.d/qemu-binfmt
References: https://github.com/rancher-sandbox/rancher-desktop/issues/2668 / https://github.com/rancher-sandbox/rancher-desktop/issues/2659
Versions involved:
alpine-lima-std-3.16.0-x86_64.iso
)Steps to reproduce:
alpine
example lima configuration from lima.tar.gz
file) and extractlib/ld-musl-aarch64.so.1
(to/lib/ld-musl-aarch64.so.1
).bin/busybox
somewhere.uname
pointing to the freshly-extractedbin/busybox
./uname -a
Expected results:
Actual results:
Additional Information
I believe https://github.com/tonistiigi/binfmt/commit/c5e21394c9378124b17cdf9c4a1c09b119cfba17 added a patch to the qemu in use to assume the
preserve-argv
flag inbinfmt_misc
when no flags are found; I assume that code is somehow being triggered.Workaround (and likely fix): Add
binfmt_flags="POCF"
to/etc/conf.d/qemu-binfmt
.References: https://github.com/rancher-sandbox/rancher-desktop/issues/2668 / https://github.com/rancher-sandbox/rancher-desktop/issues/2659