Hot answers tagged

1

If you are using cloud-init you can wait for it to complete. while [ ! -f /var/lib/cloud/instance/boot-finished ]; do echo 'Waiting for cloud-init...' sleep 1 done e.g. packer json: { "type": "shell", "inline": [ "while [ ! -f /var/lib/cloud/instance/boot-finished ]; do echo 'Waiting for cloud-init...'; sleep 1; done" ] } Reference: ...


Only top voted, non community-wiki answers of a minimum length are eligible