On Sat, 17 Aug 2024, Michael Tokarev wrote:
> Control: tag -1 + moreinfo
>
> 17.08.2024 13:26, Mikulas Patocka wrote:
> ...
>
> > The reason why it doesn't work is that the package qemu-user-binfmt on
> > Debian
> > SID lacks the files /usr/share/binfmts/qemu-* - so the binfmt emulation is
> > not
> > installed. When I copy the files /usr/share/binfmts/qemu-* from Debian 12 to
> > Debian SID, running programs for different architectures work.
>
> The binfmt-support files should not be in qemu packages, qemu does not
> ship them for quite some time.
>
> You can trivially see in the list of files qemu-user-binfmt package
> installs what is used to configure binfmt support. Also by looking at
> depends/recommends of this package, you wont notice binfmt-support
> package, which is for a reason, - obviously if we used binfmt-support,
> we'd mention it there somewhere.
>
> Maybe you need to run systemd-binfmt to register the newly installed
> binfmts, but I assume it should be done automatically by systemd by
> using a trigger for /usr/lib/binfmt.d/, - but this is not a qemu issue.
systemd-binfmt did it. I don't use systemd, so I added it to /etc/rc.local
and it fixed the binfmt support.
Mikulas
> Thanks,
>
> /mjt
>