3

I am getting this SMG from cloud-init; with a clean installation of Ubuntu 18.04.1

Capture

enter image description here how Can I Fix this?

3 Answers 3

2

The solution that worked with me, as shown here, just create an empty file, type :

sudo touch /etc/cloud/cloud-init.disabled
0

You can configure getty@.service to wait until cloud-init.target has finished. Same concept as this answer, but waiting for network.target didn't work for me with the cloud-init messages.

mkdir /etc/systemd/system/getty@.service.d/
nano /etc/systemd/system/getty@.service.d/cloud-init_wait.conf #anything ending in .conf

[Unit]

After=cloud-init.target

1
  • This doesn't seem to work for me, is there anything else you need to do after creating the file? Apr 25, 2020 at 22:49
0

I had a similar problem with Ubuntu Server 20.04.2 on a Hyper-V machine. Jeff's answer almost worked for me. This post suggests creating the directory

/etc/systemd/system/getty@tty1.service.d/

instead of

/etc/systemd/system/getty@.service.d/

The rest is identical. Create a .conf file inside this directory, add the contents

[Unit]

After=cloud-init.target

to it and reboot. That should do the trick.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.