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

Add support for 9p mounts in WSL2 #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rennex
Copy link
Contributor

@rennex rennex commented Oct 2, 2019

I upgraded to WSL2 and this stopped working. By making the script accept mounts of type 9p in addition to drvfs, I got it to work easily.

WSL2 also mounts tools on /init type 9p, so the script thought TO is a drive letter. I added a check for : as the second character.

Unfortunately, this doesn't work yet with repos that reside on the Linux disk. Their paths would be simpler to convert: /home/x/repo/ in Linux is e.g. \\wsl$\Ubuntu\home\x\repo\ in Windows. However, running a .bat script in a UNC path prints a warning (and it's only possible to run it in PowerShell). I'm not sure if that can be fixed.

@Stanzilla
Copy link

Stanzilla commented Mar 5, 2020

@hangxingliu hey there, any plans to get this is in?

@rennex you could use the wslpath utility for that, afaik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants