Skip to content
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

Fix Windows File Systems not being mounted on first start when using the Installer #79

Merged
merged 2 commits into from
Apr 17, 2022

Conversation

nzbr
Copy link
Member

@nzbr nzbr commented Apr 16, 2022

Add a /bin/mount binary to the installer, so that WSL can correctly mount the file systems
/etc/fstab is not required, but an error appears if it is not present

When the shell is started in /root, syschdemd now silently changes to the default user's home directory, in order to prevent an error message from appearing. This happens, when WSL is started in a directory, that is not available in the guest fs

Closes #72

@nzbr nzbr added the bug Something isn't working label Apr 16, 2022
@nzbr nzbr requested a review from grantbevis April 16, 2022 22:05
@sielicki
Copy link

I was able to consistently reproduce this when WSL was started with Windows Terminal Preview, can confirm that the first commit ( fix "cd: /root: Permission denied" ) is good.

@nzbr nzbr merged commit c4b7e5f into nix-community:main Apr 17, 2022
@nzbr nzbr deleted the mount-fix branch April 17, 2022 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/bin/sh: line 1: cd: /root: Permission denied
2 participants