microsoft / microsoft/WSL

Allow ; (semicolon) in addition to working hash sign in /etc/wsl.conf

Open
#7,013 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
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:

Instead all examples use # as comment syntax and it was hard to get to the point not trusting comment syntax...

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.