Project

General

Profile

Actions

action #178561

open

[WSL] Command `wsl --install --no-distribution` does not require admin privileges anymore

Added by pherranz 4 days ago. Updated 4 days ago.

Status:
Blocked
Priority:
High
Assignee:
Target version:
-
Start date:
2025-03-10
Due date:
% Done:

0%

Estimated time:
Tags:

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.


Related issues 1 (1 open0 closed)

Blocked by Containers and images - action #176532: [WSL] `403 Forbidden` error code when trying to install WSLIn Progresspherranz2025-02-04

Actions
Actions

Also available in: Atom PDF