The bottom of the network setup page of the "How to install Ubuntu Server on your Raspberry Pi" tutorial says,
Note: During the first boot, your Raspberry Pi will try to connect to this network. It will fail the first time around. Simply reboot
sudo rebootand it will work.
Why does it fail the first time? On the first boot is also when cloud-init runs, and if it cannot connect to the network, many cloud-init stages (like installing packages) will fail.
Instead of creating network-config on the boot partition, is there another file I could create that would properly configure the network on first boot?