Read wsl-distribution.conf
and wsl.conf
from /usr/lib
if not present in /etc
#12299
Labels
wsl-distribution.conf
and wsl.conf
from /usr/lib
if not present in /etc
#12299
Is your feature request related to a problem? Please describe.
Immutable/hermetic Distros may choose to only provide a
/usr
directory and mount other dirs like/etc
as a tmpfs in which case it is not possible to ship the above config files in their original locationDescribe the solution you'd like
WSL should fallback to reading the config from
/usr
if it cannot find it in/etc
. Even better would be to merge the configs if both files are presentDescribe alternatives you've considered
Do not support hermetic distros
Additional context
The most popular example of such a distro is likely the impermanence mode of NixOS but there many custom, specialized distros which go this route. E.g. most immutable distros only provide a
/usr
and only populate/etc
upon first bootThe text was updated successfully, but these errors were encountered: