canonical / canonical/cloud-init
[enhancement]: wsl datasource - Inherit user from Windows
Open
enhancement
- Dominant language
- Python
- Stars
- 3.8k
- Forks
- 1.1k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 18
Description
# Enhancement
On WSL, the user is prompted during installation to create a default user or you can provide it through cloud-init configuration.
The user of the WSL instance is almost always the same user running the session on the Windows host.
We could automatically create a default user in the WSL instance with the login name and properties inherited from the Windows system.
For instance we could add something like:
```
users:
- wsl: inherit|prompt
```
If wsl is not set then it defaults to `prompt`
I'm definitely open to discussion on a better configuration parameter.
Contributor guide
Assessment
This issue has not been assessed yet.