Commit Graph

14 Commits

Author SHA1 Message Date
Simon de Vlieger
fc30a377e8
oobe: wait for cloud-init to finish
Let's wait for `cloud-init` to finish before we exit the OOBE; this
ensures that any potential user has been created. In the future we might
want to always continue with our OOBE, in those cases that `cloud-init`
didn't create a user we can then continue with the prompt(s).

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-06-18 21:52:05 +02:00
Simon de Vlieger
3ee41192ed
oobe: message for enabled cloud-init
Show a message when cloud-init is enabled so users know what is going
on.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-06-05 16:50:38 +02:00
Simon de Vlieger
5afaf63d99
oobe: exit early for cloud-init
WSL supports `cloud-init` for provisioning. In some cases (RHEL) this is
enabled. If `wsl-setup` is used on RHEL then there's a TOCTOU between
the check for "no user exists" and the "create user" part as
`cloud-init` creates the user during the prompt.

Let's exit early and assume everything is handled by `cloud-init` *if*
it is enabled.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-05-28 12:01:25 +02:00
Troy Dawson
0479b8395c Change /usr/lib/wsl-distribution.conf to a ghost file
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2025-05-19 08:37:51 -07:00
Troy Dawson
b781149120 Make wsl-setup a script
The script generates wsl-distribution.conf from a template.
You can pass it options for the Name as well as the
logo file.

Signed-off-by: Troy Dawson <tdawson@redhat.com>
2025-05-19 08:37:42 -07:00
Troy Dawson
3c2b79527f Dynamically set DefaultName on package install
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2025-04-15 10:32:51 -07:00
Troy Dawson
cac1fa2a3b Expand variations for default_name
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2025-04-11 07:31:27 -07:00
Jeremy Cline
821d0da367
Add distribution icon to wsl-distribution.conf
Added in https://pagure.io/fedora-logos/pull-request/27 there's now a
logo in a format acceptable to WSL. This adds a dependency on the logos
package and configures the icon setting for the distribution.
2025-03-21 11:46:25 -04:00
David Senoner
7b44929d3b fix typo 2025-02-23 21:18:35 +00:00
Jeremy Cline
aae108edd0
oobe: Let the user know they're in wheel and have passwordless sudo
Also include the command to set a password, if they wish.
2025-02-18 10:24:26 -05:00
Jeremy Cline
3fb3ab214e
Add tmpfiles configuration for x11, Wayland, and PulseAudio support
This includes the tmpfiles config to link the various WSL-provided
service sockets to the expected location.

It also includes an override snippet for systemd-firstboot to have it
not run inside WSL for the present as it hangs forever.
2025-01-31 10:24:40 -05:00
Jeremy Cline
36a22f247c
Replace define macro with global
Zbyszek noted global is preferred to define in a review comment.
2025-01-28 09:42:51 -05:00
Jeremy Cline
7fee63c813
Initial import (rhbz #2342289) 2025-01-27 13:42:03 -05:00
releng bot
148a880fb5 Added the README 2025-01-27 16:55:19 +00:00