Skip to content

Commit

Permalink
Merge pull request #12 from ubuntu/fix-cloudinit-default-user
Browse files Browse the repository at this point in the history
fix: Prevents creating an unexpected user
  • Loading branch information
CarlosNihelton authored May 2, 2024
2 parents 08a7311 + a438d4d commit a249d3f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cloud/cloud.cfg.d/99_wsl.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
datasource_list: [WSL, None]
network:
config: disabled

# Prevents creation of an unexpected user
# The redundant "distro" subkey is necessary in order to match exactly what is in
# `/etc/cloud/cloud.cfg`, omitting it would result in the default user still being created
# as this would be a "generic" `system_info` while the one in `/etc/cloud/cloud.cfg` would be
# the Ubuntu specific.
# See: https://github.com/ubuntu/WSL/issues/468
system_info:
distro: ubuntu
default_user:

0 comments on commit a249d3f

Please sign in to comment.