Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not prompt to create a user when it is already created by cloud-init #469

Open
1 task done
jibel opened this issue May 7, 2024 · 0 comments
Open
1 task done
Labels
enhancement New feature or request jira Import to Jira

Comments

@jibel
Copy link
Collaborator

jibel commented May 7, 2024

cmd /c ver

Microsoft Windows [Version 10.0.22631.3527]

wsl --status

Default Distribution: Ubuntu-20.04
Default Version: 2

Did the problem occur during installation?

  • Yes

What happened?

I've the following cloud-init configuration file

#cloud-config
locale: fr_FR
users:
- name: u
  gecos: Ubuntu User
  groups: [adm,dialout,cdrom,floppy,sudo,audio,dip,video,plugdev,netdev]
  sudo: ALL=(ALL) NOPASSWD:ALL
  shell: /bin/bash

write_files:
- path: /etc/wsl.conf
  append: true
  content: |
    [user]
    default=u

packages: [hello]

It creates a default user. If I install wsl with wsl --install ubuntu-24.04 then I'm prompted to create a default user too. This is unnecessary since the user is created by cloud-init.

What was expected?

Do not prompt to add a default user

Steps to reproduce

run wsl --install ubuntu-24.04 with the cloud-init configuration above in .cloud-init/ubuntu-24.04.user-data

Additional information

No response

@jibel jibel added enhancement New feature or request jira Import to Jira labels May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request jira Import to Jira
Projects
None yet
Development

No branches or pull requests

1 participant