Skip to content

Add support for 9p mounts in WSL2#15

Open
rennex wants to merge 1 commit intohangxingliu:masterfrom
rennex:master
Open

Add support for 9p mounts in WSL2#15
rennex wants to merge 1 commit intohangxingliu:masterfrom
rennex:master

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