On Tue, Nov 23, 2010 at 06:08:06PM +0100, Jakub Wilk wrote: > On an i386 system with x86-64 kernel, if both qemu-user-static and > binfmt-support are installed, amd64 binaries are run through qemu > even if the kernel could run them natively. This breaks e.g. > debootstrap, which fail in a mysterious way (AFAIUI because qemu > cannot be found inside the chroot), giving a user no clue what went > wrong.
i don't see how this is possible, i've looked at both qemu-user-static_0.12.5+dfsg-2_amd64.deb and qemu-user-static_0.13.0+dfsg-2_amd64.deb, and neither contain the files that would enable i386 emulation: lesspipe qemu-user-static_0.12.5+dfsg-2_amd64.deb | egrep -i binfmt Recommends: binfmt-support drwxr-xr-x root/root 0 2010-08-17 06:24 ./usr/share/binfmts/ -rw-r--r-- root/root 252 2010-08-17 06:24 ./usr/share/binfmts/qemu-ppc64abi32 -rw-r--r-- root/root 248 2010-08-17 06:24 ./usr/share/binfmts/qemu-mipsel -rw-r--r-- root/root 246 2010-08-17 06:24 ./usr/share/binfmts/qemu-armeb -rw-r--r-- root/root 245 2010-08-17 06:24 ./usr/share/binfmts/qemu-arm -rw-r--r-- root/root 247 2010-08-17 06:24 ./usr/share/binfmts/qemu-mips -rw-r--r-- root/root 247 2010-08-17 06:24 ./usr/share/binfmts/qemu-alpha -rw-r--r-- root/root 248 2010-08-17 06:24 ./usr/share/binfmts/qemu-sh4eb -rw-r--r-- root/root 253 2010-08-17 06:24 ./usr/share/binfmts/qemu-microblaze -rw-r--r-- root/root 245 2010-08-17 06:24 ./usr/share/binfmts/qemu-ppc -rw-r--r-- root/root 253 2010-08-17 06:24 ./usr/share/binfmts/qemu-sparc32plus -rw-r--r-- root/root 249 2010-08-17 06:24 ./usr/share/binfmts/qemu-sparc64 -rw-r--r-- root/root 247 2010-08-17 06:24 ./usr/share/binfmts/qemu-m68k -rw-r--r-- root/root 245 2010-08-17 06:24 ./usr/share/binfmts/qemu-sh4 -rw-r--r-- root/root 246 2010-08-17 06:24 ./usr/share/binfmts/qemu-cris -rw-r--r-- root/root 247 2010-08-17 06:24 ./usr/share/binfmts/qemu-sparc -rw-r--r-- root/root 247 2010-08-17 06:24 ./usr/share/binfmts/qemu-ppc64 drwxr-xr-x root/root 0 2010-08-17 06:24 ./etc/qemu-binfmt/ debian/rules explicitly filters out the i386 and x86_64 files on amd64: # binfmt support ALL_BINFMT_TARGETS=alpha arm armeb cris i386 m68k microblaze mips mipsel ppc ppc64 ppc64abi32 sh4 sh4eb sparc sparc32plus sparc64 x86_64 ifeq ($(DEB_HOST_ARCH),amd64) BINFMT_TARGETS=$(filter-out i386 x86_64, $(ALL_BINFMT_TARGETS)) endif perhaps something is manually configured, an old version of qemu-user-static enabled the binfmt rules, or maybe another package entirely? live well, vagrant -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org