Open cowwoc opened 3 days ago
If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Tagging @yardenshafir and @D4stiny for additional visibility
/feature
Consider whether WSL's creation of Windows symlinks suits your use case. https://github.com/MicrosoftDocs/WSL/releases/tag/17046
@0xbadfca11 I'm not sure how I am expected to make this work. The changelog reads:
DrvFs creates NT symlinks when certain conditions are met. [GH 353, 1475, 2602] The link target must be relative, must not cross any mount points or symlinks, and must exist. The user must have SE_CREATE_SYMBOLIC_LINK_PRIVILEGE (this normally requires you to launch wsl.exe elevated), unless Developer Mode is turned on. In all other situations, DrvFs still creates WSL symlinks.
When it says that the symlinks must exist
does it mean that I need to manually create symlinks on the Windows side? Or that it is sufficient for a WSL symlink to exist from a previous run?
In my case there is a volume mapping /etc/letsencrypt
on the Linux side to C:\[redacted]\config
on the Windows side. The symlink problematic symlink isn't top-level. On Linux, /etc/letsencrypt/live/[redacted]/fullchain.pem
is symlinked to /etc/letsencrypt/archive/[redacted]/fullchain1.pem
and the file it points to keeps on changing over time (from fullchain1.pem
to fullchain2.pem
, etc).
How am I supposed to get it worked in this case?
Also, I have no idea if Docker Desktop has SE_CREATE_SYMBOLIC_LINK_PRIVILEGE. Do you?
Windows Version
Microsoft Windows [Version 10.0.19045.5011]
WSL Version
2.3.24.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.153.1-2
Distro Version
No response
Other Software
Docker Desktop (Windows), version 4.35.1
Repro Steps
Is there ongoing work to add Windows support for WSL symlinks? https://blog.trailofbits.com/2024/02/12/why-windows-cant-follow-wsl-symlinks/ describes the problem but I could not find an existing GitHub issue related to this.
junction <symlinked file>
returns:C:\Users\Gili\Documents\licensed-app\deployment\certbot\config\live\gili.licensed.app\fullchain.pem: UNKNOWN MICROSOFT REPARSE POINT