-
-
Notifications
You must be signed in to change notification settings - Fork 151
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug description
nix develop
and certain other commands always state:
error:
… while setting up the build environmenterror: getting attributes of path '/run/binfmt': No such file or directory
To Reproduce
Steps to reproduce the behavior:
Run nix develop nixpkgs#hello
Logs
nixos-wsl-version
NixOS-WSL DEV_BUILD 20630a560fa658b1f4fc16e6ef2b6b3d6f8539f5 native
sudo systemctl status systemd-binfmt
× systemd-binfmt.service - Set Up Additional Binary Formats
Loaded: loaded (/etc/systemd/system/systemd-binfmt.service; enabled; preset: enabled)
Drop-In: /nix/store/cg1cvw5sailcmzb77980dbz9bvw36gwg-system-units/systemd-binfmt.service.d
└─overrides.conf
Active: failed (Result: exit-code) since Tue 2024-09-24 09:39:19 CEST; 1min 30s ago
Docs: man:systemd-binfmt.service(8)
man:binfmt.d(5)
https://docs.kernel.org/admin-guide/binfmt-misc.html
https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
Process: 20623 ExecStart=/nix/store/109w24xsb42fali6vh051vd2ghiphj4s-systemd-255.9/lib/systemd/systemd-binfmt (code=exited, status=1/FAILURE)
Main PID: 20623 (code=exited, status=1/FAILURE)
IP: 0B in, 0B out
Sep 24 09:39:19 DANIELKNB1 systemd-binfmt[20623]: /etc/binfmt.d/nixos.conf:1: Failed to add binary format 'WSLInterop': No such file or directory
sudo systemctl status wsl-binfmt
○ wsl-binfmt.service - WSL binfmt restore
Loaded: loaded (/run/systemd/generator.early/wsl-binfmt.service; generated)
Active: inactive (dead) since Tue 2024-09-24 09:38:50 CEST; 9min ago
Process: 20574 ExecStart=/bin/sh -c (echo -1 > /proc/sys/fs/binfmt_misc/WSLInterop-late) ; (echo :WSLInterop-late:M::MZ::/init:P > /proc/sys/fs/binfmt_misc/register) (code=exited, status=0/SUCCESS)
Main PID: 20574 (code=exited, status=0/SUCCESS)
IP: 0B in, 0B out
Sep 24 09:38:50 DANIELKNB1 sh[20575]: /nix/store/nmyaxjl9ihqf3d7b3i60x1mj000rvm35-bash-interactive-5.2p32/bin/sh: line 1: /proc/sys/fs/binfmt_misc/WSLInterop-late: Permission denied
WSL version
WSL-Version: 2.2.4.0
Kernelversion: 5.15.153.1-2
WSLg-Version: 1.0.61
MSRDC-Version: 1.2.5326
Direct3D-Version: 1.611.1-81528511
DXCore-Version: 10.0.26091.1-240325-1447.ge-release
Windows-Version: 10.0.19045.4780
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working