-
-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Startup fails with "unshare: mount ... on ... failed: Invalid argument" #292
Labels
bug
Something isn't working
Comments
That's a warning, not an error. |
The actual issue is fixed on main, so I'll close the issue, but leave it pinned for visibility. |
Wouldn't it still fail with syschdemd? I'd not say it's fixed but rather no longer relevant (therefore the wontfix label) |
I fixed it on main. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description
When trying to start NixOS-WSL, it fails with an error like
To Reproduce
Update WSL to the new 2.0.0.0 release and try to start NixOS using syschdemd
Resolution
Run the following commands to update to the latest NixOS-WSL version and switch to native systemd:
This shoudl give you a root shell in the NixOS distro. From there run:
/nix/var/nix/profiles/system/activate . /etc/set-environment
Now update NixOS-WSL by running
Use an Editor (nano/vim) to edit
/etc/nixos/configuration.nix
and set the optionSave the file and run (this will print some errors, but that's fine)
After that, exit back to your windows shell and run
If this gives you a shell as the default user, everything should be working again
The text was updated successfully, but these errors were encountered: