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>
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>
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>
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.
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.