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>
This commit is contained in:
parent
3ee41192ed
commit
fc30a377e8
@ -12,7 +12,8 @@ set -ueo pipefail
|
||||
DEFAULT_USER_ID=1000
|
||||
|
||||
if systemctl is-enabled cloud-init.service > /dev/null ; then
|
||||
echo 'cloud-init is enabled, skipping user account creation'
|
||||
echo 'cloud-init is enabled, skipping user account creation. Waiting for cloud-init to finish.'
|
||||
cloud-init status --wait > /dev/null 2>&1
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user