systemd-binfmt.service.d/wsl.conf
breaking compatibility with
qemu` from version >=8.0.0 onwards
#11
Labels
bug
Something isn't working
Hello!
This config below breaks compatibility with
qemu-user-static
starting from version 8.0.0.wsl-setup/systemd/system/systemd-binfmt.service.d/wsl.conf
Lines 1 to 4 in 08a7311
qemu
has removed binfmt-support registration from version 8.0.0 onwards, see changelog:Previously, the binfmt files were stored in
/usr/share/binfmts/
(e.g.qemu-aarch64
) after installingqemu-user-static
<8.0.0 and automatially loaded. The wsl config mentioned above did not prevent this.From version 8.0.0 onwards, the qemu files for binfmt are stored in
/usr/lib/binfmt.d/
(e.g.qemu-aarch64.conf
) in a .conf format. Usually, these are auto-loaded/enabled bysystemd-binfmt.service
on boot time. However, sincesystemd-binfmt.service.d/wsl.conf
prevents this auto-load on boot,qemu-user-static
is not functional anymore on WSL-Ubuntu (Ubuntu 23.10 and 24.04 haveqemu
versions >=8.0.0)The config files
/usr/lib/systemd/system/systemd-binfmt.service.d/wsl.conf
as well as/etc/systemd/system/systemd-binfmt.service.d/00-wsl.conf
preventsystemd-binfmt.service
from starting.How to reproduce
qemu-user-static
andbinfmt-support
sudo update-binfmts --enable qemu-aarch64
update-binfmts: warning: qemu-aarch64 not in database of installed binary formats
Expected behaviour (like it was in Ubuntu 22.04):
qemu-user-static
andbinfmt-support
sudo update-binfmts --enable qemu-aarch64
qemu-aarch64
enabled withsudo update-binfmts --display
The text was updated successfully, but these errors were encountered: