Your message dated Mon, 10 Jul 2023 10:20:37 +0300
with message-id <[email protected]>
and subject line Re: Bug#1034319: debootstrap of foreign arch fails w/o
recommended binfmt-support
has caused the Debian Bug report #1034319,
regarding debootstrap of foreign arch fails w/o recommended binfmt-support
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1034319: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1034319
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: qemu-user-static
Version: 1:7.2+dfsg-5
Severity: normal
I got a new arm64 host at Hetzner, and needed an amd64 chroot in it.
Of course that's easy, since debootstrap --arch just works for foreign
arches with qemu-user-static installed.
root@sparrow:/tmp>apt-get install debootstrap qemu-user-static
root@sparrow:/tmp>debootstrap --arch amd64 sid sid
...
W: Failure trying to run: chroot "/tmp/sid" /bin/true
W: See /tmp/sid/debootstrap/debootstrap.log for details
root@sparrow:/tmp>tail -1 /tmp/sid/debootstrap/debootstrap.log
chroot: failed to run command '/bin/true': Exec format error
Oops, so it doesn't just work. Some digging in the postinst revealed
I needed binfmt-support installed, and it was not installed. I think
because qemu-user-static Recommends: systemd | binfmt-support
and of course I have systemd installed.
If systemd by itself is supposed to somehow handle what binfmt-support
does, it did not work in my case. I had to install binfmt-support
and rerun /var/lib/dpkg/info/qemu-user-static.postinst to fix the
problem.
--
see shy jo
signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---
18.04.2023 17:15, Michael Tokarev wrote:
..
IIRC, systemd added triggers for /usr/lib/binfmt.d/ in a version
after bullseye one.
systemd (251.2-1) unstable; urgency=medium
* Add dpkg file trigger for systemd-binfmt to update binfmt registrations
This stuff works just fine on bookworm or with systemd from
bullseye-backports. This is why I haven't bothered adding my
own triggers.
I guess this can be closed as fixed in version 251.2-1 :)
So let's close this one finally, now once bookworm is released.
Thanks,
/mjt
--- End Message ---