Allow ; (semicolon) in addition to working hash sign in /etc/wsl.conf
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 33.7k
- Forks
- 1.8k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 116
Description
I spent an hour trying to apply [automount] options reloading sc stop LxssManager and stopping distro wsl.exe --terminate Debian.
The mount -l showed default mount settings.
The problem was that I commented a line with semicolon:
[automount]
enabled = true
mountFsTab = false
; options = "metadata"
options = "metadata,noatime,uid=1000,gid=1000,umask=022,fmask=077"
because documentation said the file uses INI-like syntax:
- https://devblogs.microsoft.com/commandline/automatically-configuring-wsl/
- https://docs.microsoft.com/en-us/windows/wsl/wsl-config
Instead all examples use # as comment syntax and it was hard to get to the point not trusting comment syntax...
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the parser for /etc/wsl.conf and checking how comment lines are recognized. Update the behavior so semicolon-prefixed lines are treated as comments, then verify that the remaining [automount] options are applied after restarting the relevant WSL services.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100