When launching the WSL and checking in the event viewer, I get the following error logged:
Expected ']' in C:\Users\myuser\.wslconfig:3
Expected '=' in C:\Users\myuser\.wslconfig:4
Expected '=' in C:\Users\myuser\.wslconfig:5
Expected '=' in C:\Users\myuser\.wslconfig:6
and none of the settings from the system-distro-env section apply.
By playing around with the file, I was able pin it down to the hyphen in the section name and the underscores in the key names. Somehow they aren't parsed correctly. When removing the hyphens and underscores I get unknown key errors instead.
And when removing the system-distro-env section entirely, it works normally.
The file is UTF-8 with (CLRF).
Windows build number:
22621.2861 [Version 10.0.22621.2861]
Your Distribution version:
22.04
Your WSL versions:
Steps to reproduce:
I tried configuring the wslg with options from: the docs. I attached the exact file I am using, renamed so it's accepted as an attachment.
wslconfig.txt
WSL logs:
weston.log
stderr.log
WSL dumps:
No response
Expected behavior:
No response
Actual behavior:
When launching the WSL and checking in the event viewer, I get the following error logged:
and none of the settings from the system-distro-env section apply.
By playing around with the file, I was able pin it down to the hyphen in the section name and the underscores in the key names. Somehow they aren't parsed correctly. When removing the hyphens and underscores I get unknown key errors instead. And when removing the system-distro-env section entirely, it works normally. The file is UTF-8 with (CLRF).