[SRU] Default user created by cloud-init confuses WSLg
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wsl-setup (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Noble |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Context]
wsl-setup is a package to carry pieces of configuration specifically implemented for a better experience with Ubuntu WSL.
A bug reported originally by Microsoft engineers, made public via https:/
The issue happens when cloud-init creates a default user ahead of the user's request, which can happen whenever users don't supply any user-data.
WSL graphical subsystem (WSLg) expects the default user to be UID 1000, which, being taken by cloud-init, causes the subsystem to mess with runtime dir permissions.
The fix was implemented in https:/
[Impact]
* Only WSL users creating new instances of Ubuntu 24.04 LTS are subject to cloud-init effects.
* Currently users affected by this bug are considered early-adopters. A much wider audience is expected with the release of 24.04.1.
* wsl-setup is exclusive to Ubuntu WSL, so no other Ubuntu product or experience is affected.
[Test plan]
* Install the most recent version of Ubuntu 24.04 LTS application from MS Store with the latest wsl-setup already seeded.
* Start the application on a Windows console: `ubuntu2404.exe`.
* When prompted create the default user and password via the regular WSL launcher workflow.
* When the setup is complete and bash is shown install the `gtk-4-examples` package with: `sudo apt update && sudo apt install -y gtk-4-examples`.
* When installation is complete, run the gtk4-demo application with the default backend and ensure it opens correctly: `gtk4-demo`.
* Close it and relaunch it with the GDK backend set to "wayland": `GDK_BACKEND=
[Where problems could occur]
* Users familiar with cloud-init on Ubuntu might expect the creation of the `ubuntu` user, as it happens with clouds and LXD containers.
[Other Info]
* Cloud-init support on WSL is recent enough so users should not have had enough time to create expectations about such behavior by the time this SRU is finished.
* A similar test workflow was proposed to ISO Tracker test case for Ubuntu WSL to check that behavior. Merge proposal: https:/
description: | updated |
description: | updated |
The attachment "Attached debdiff for wsl-setup 0.5.3 for Noble" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]