Tested the version 0.5.3~24.04 from noble-proposed as described below: - Disable cloud-init via WSL2 kernel command line. - Create a new instance without a default user with command: `ubuntu2404.exe install --root`. - Boot into the instance, enabled proposed and installed *only* wsl-setup via: `apt update && apt-get install wsl-setup/noble-proposed`. - Clean cloud-init state as a precaution: `cloud-init clean --logs`. - Exit the WSL instance. - Exported the instance's root filesystem to generate a new image for testing: `wsl.exe --export Ubuntu-24.04 .\proposed-test.tar.gz`. - Remove custom WSL2 kernel command line to re-enable cloud-init. - Shutdown WSL with: `wsl.exe --shutdown`. - Remove any user-data files in %USERPROFILE%/.cloud-init or %USERPROFILE/.ubuntupro/.cloud-init. - Import the rootfs as a new instance: `wsl --import Proposed .\proposed\ .\proposed-test.tar.gz`. - Wait on cloud-init: `wsl -d Proposed cloud-init status --wait`. - Check if there is any user: `ls /home; id 1000; grep -e '100[0-9]' /etc/passwd` (all must output nothing). - Install gtk-4-examples: `apt update && apt install -y libgles2 libgl1 gtk-4-examples` - Create a user: `adduser u`. - Make that user the default via `/etc/wsl.conf`: `printf "[user]\ndefault=u\n" > /etc/wsl.conf`. - Exit the instance and terminate it: `wsl.exe -t Proposed`. - Start the instance: `wsl -d Proposed` (the user should now be u - not root). - Run gtk4-demo with the default backend: `gtk4-demo` - Run again with the wayland backend: `GDK_BACKEND=wayland gtk4-demo`.
The gtk4-demo application is shown in both ways. cloud-init didn't create any default user. Everything worked as expected for this patch. ** Tags removed: verification-needed-noble ** Tags added: verification-done-noble -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2065349 Title: [SRU] Default user created by cloud-init confuses WSLg To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/wsl-setup/+bug/2065349/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs