I'm not in the snapd team so I cannot go much in depth, but be aware that since this PR was merged, https://github.com/snapcore/snapd/pull/12135 WSL detection no longer uses systemd. It now checks if file /proc/sys/fs/binfmt_misc/WSLInterop exists. This is currently in the beta channel.
Hi
I'm not in the snapd team so I cannot go much in depth, but be aware that since this PR was merged, https:/ /github. com/snapcore/ snapd/pull/ 12135 WSL detection no longer uses systemd. It now checks if file /proc/sys/ fs/binfmt_ misc/WSLInterop exists. This is currently in the beta channel.
As soon as https:/ /github. com/snapcore/ snapd/pull/ 12179 is merged, the existance of /run/WSL will also be interpreted as running WSL.