bostrot / wsl2-distro-manager

A GUI to quickly manage your WSL2 instances
https://apps.microsoft.com/store/detail/wsl-manager/9NWS9K95NMJB
Other
1.82k stars 111 forks source link

[BUG] Lost default user configuration after shrink/cleanup #192

Open felipecrs opened 1 year ago

felipecrs commented 1 year ago

Is there an existing issue for this?

Current Behavior

After running the cleanup/shrink to one of my distros, when it finished, I tried to enter in WSL and I was logged in as root instead of my previous user.

No data was lost though. :)

Expected Behavior

To login as my previous default user as before.

Steps To Reproduce

I believe this issue can be triggered this way:

  1. Install a brand new WSL distro from Microsoft Store
  2. Configure it (i.e. set an user)
  3. Trigger disk shrink/cleanup from Distro Manager
  4. After it finishes, try logging in

Environment

- Windows Version: Windows 11 Pro 10.0.22631.1900
- WSL Distro Manager Version: 1.8.5
- WSL Version: 1.3.11.0
- Source: Windows Store

Anything else?

https://superuser.com/questions/1566022/how-to-set-default-user-for-manually-installed-wsl-distro