DamionGans / ubuntu-wsl2-systemd-script

[Does not work anymore!] Script to enable systemd support on current Ubuntu WSL2 images
1.56k stars 383 forks source link

Add detection of WSL/not-WSL and abort as necessary #32

Closed lucyllewy closed 3 years ago

lucyllewy commented 4 years ago

WSL_DISTRO_NAME is set universally by the WSL init process, so we can rely on this as indicator of being in a WSL installation.

Signed-off-by: Daniel Llewellyn daniel@bowlhat.net