Closed erik-smit closed 2 years ago
This nsenter: failed to parse pid: '-p'
only occurs with the latest release 21.11-d89f18a1
.
20.09-1c1f5649
works.
PS C:\Users\erik.smit.ALETHO\Downloads> wsl --distribution NixOS
An error occurred mounting one of your file systems. Please run 'dmesg' for more details.
[nixos@nixos:/mnt/c/Users/erik.smit.ALETHO/Downloads]$
Seems like the An error occurred mounting one of your file systems. Please run 'dmesg' for more details.
is a red herring and a separate issue.
Rebooting or terminating the instance after importing 'solves' the problem.
It looks like the installer leaves the system in a bad state.
PS C:\Users\erik.smit.ALETHO> wsl -d NixOS
An error occurred mounting one of your file systems. Please run 'dmesg' for more details.
nsenter: failed to parse pid: '-p'
PS C:\Users\erik.smit.ALETHO> wsl -t NixOS
PS C:\Users\erik.smit.ALETHO> wsl -d NixOS
Copying /usr/share/applications
Copying /usr/share/icons
setting up /etc...
[nixos@Budapest:/mnt/c/Users/erik.smit.ALETHO]$
The "An error occurred mounting one of your file systems. Please run 'dmesg' for more details." on first launch can be safely ignored. It should not happen after the installer has ran though. It happens because there is no /bin/mount
present in the installer image.
You should not drop back to powershell after the installer finishes, instead a bash should open. There was an issue that caused the activation script to fail on the first start. I have pushed a fix for that issue and moved the release to that commit. The issue might be that you have a copy of the installer tarball that does not contain the fix. Can you give me the timestamp of the tarball you downloaded?
smite@Budapest:/mnt/c/Users/erik.smit.ALETHO/Downloads$ md5sum nixos-wsl-installer.tar.gz
d0f5078b774229964b88d1aa526819e5 nixos-wsl-installer.tar.gz
smite@Budapest:/mnt/c/Users/erik.smit.ALETHO/Downloads$ ls -la nixos-wsl-installer.tar.gz
-rwxrwxrwx 1 smite smite 203271183 Mar 31 14:36 nixos-wsl-installer.tar.gz
The file you have contains the fix. That means there is another problem here EDIT: I can reproduce the issue on my setup
The problem was introduced by a change from #64. The commit just before it was merged works just fine
I have created a PR that should fix the issue. The CI should have built a tarball soon, so you can try if it works
https://github.com/nix-community/NixOS-WSL/suites/5882551859/artifacts/198820817
Solves the problem for me. Thank you!
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
This is on a Dell Latitude 7320 with Windows 11 fresh from the box.
Ubuntu on WSL works fine.
Import goes fine. First run gives
An error occurred mounting one of your file systems. Please run 'dmesg' for more details.
but continues installation. Second run exits withAn error occurred mounting one of your file systems. Please run 'dmesg' for more details. nsenter: failed to parse pid: '-p'
.I'll see if I can troubleshoot what's going on. I suspect it may be behind on updates. I'll update it and report back. If the updates fix it, I'll close the issue and hopefully somebody else who runs into this issue is helped by this.