Skip to content

Detect existing WSL distros via wsl --list instead of HKCU\Lxss - #62

Merged
AmirMS (AmelBawa-msft) merged 1 commit into
mainfrom
user/amelbawa/wsl-list-test
Jun 9, 2026
Merged

Detect existing WSL distros via wsl --list instead of HKCU\Lxss#62
AmirMS (AmelBawa-msft) merged 1 commit into
mainfrom
user/amelbawa/wsl-list-test

Conversation

@AmelBawa-msft

Copy link
Copy Markdown
Collaborator

The InstallUbuntu resource previously checked HKCU:...\Lxss to decide whether to install Ubuntu, but that registry path isn't reliably populated by newer wsl --install flows. The resource re-ran on machines that already had Ubuntu and failed.

Switches testScript and getScript to query wsl --list --quiet. The check stays broad ("any distro present") to avoid installing Ubuntu over an existing Debian/Kali setup. README updated to match.

Closes #48

@AmelBawa-msft
AmirMS (AmelBawa-msft) marked this pull request as ready for review June 9, 2026 21:12
@AmelBawa-msft
AmirMS (AmelBawa-msft) merged commit 5b1764a into main Jun 9, 2026
11 checks passed
@AmelBawa-msft
AmirMS (AmelBawa-msft) deleted the user/amelbawa/wsl-list-test branch June 9, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants