action #178561
open[WSL] Command `wsl --install --no-distribution` does not require admin privileges anymore
0%
Description
Problem¶
The command wsl --install --no-distribution has historically prompted users for administrative privileges. However, recent changes in Windows Subsystem for Linux (WSL) have removed this requirement. This change has broken existing automation scripts that relied on the admin prompt.
Impact¶
Automated tests and scripts that expect an admin prompt will fail.
Specifically, the prepare_wsl.pm script in os-autoinst-distri-opensuse (linked below) contains code designed to handle the admin privilege prompt, which is now obsolete and causing failures.
Evidence¶
Failing test example: https://openqa.suse.de/tests/17000297/modules/prepare_wsl/steps/15
Relevant code: https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/5ea59cb130266f507103d70f4e8a8c36d4b827bc/tests/wsl/prepare_wsl.pm#L34
Proposed Solution¶
Modify the prepare_wsl.pm script to remove the code that handles the admin privilege prompt.
Updated by pherranz 4 days ago
- Blocked by action #176532: [WSL] `403 Forbidden` error code when trying to install WSL added