Fedora-WSL icon indicating copy to clipboard operation
Fedora-WSL copied to clipboard

Solution for setting up binfmt_misc

Open rhoog-ine opened this issue 1 year ago • 0 comments

After installing the qemu-user-binfmt package, the binary formats from /usr/lib/binfmt.d aren't registered automatically like they should. The (a) solution is to put the following in /etc/wsl.conf:

[boot]
command = "shopt -s nullglob; for f in /usr/lib/binfmt.d/*.conf; do cat $f > /proc/sys/fs/binfmt_misc/register; done"

rhoog-ine avatar Jul 12 '24 15:07 rhoog-ine