Project

General

Profile

Actions

action #178561

closed

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

Added by pherranz about 1 month ago. Updated 19 days ago.

Status:
Resolved
Priority:
Normal
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 (0 open1 closed)

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

Actions
Actions #1

Updated by pherranz about 1 month ago

  • Assignee set to pherranz
Actions #2

Updated by pherranz about 1 month ago

  • Status changed from Workable to In Progress
Actions #3

Updated by pherranz about 1 month ago

  • Status changed from In Progress to Blocked

I've fixed this in this PR but I cannot test the results because of #176532...

Actions #4

Updated by pherranz about 1 month ago

  • Blocked by action #176532: [WSL] `403 Forbidden` error code when trying to install WSL added
Actions #5

Updated by ph03nix about 1 month ago

  • Priority changed from High to Normal
Actions #6

Updated by pherranz 19 days ago

  • Status changed from Blocked to Resolved

This is no longer required as WSL comes pre-installed in the OS image.

Actions

Also available in: Atom PDF