523 B
523 B
This is the cloud-init file that can be used in the 20.10 raspi image
The image was originally mounted using
mkdir mnt
sudo mount -o loop,offset=1048576 ubuntu-20.10-preinstalled-server-arm64+raspi.img mnt
Then copy mnt/user-data
with the contents from this snippet, i.e.
cp user-data.yaml mnt/user-data
Unmount the folder
umount mnt
Now write to the sdcard, in my example below /dev/sda
is the sdcard
sudo dd if=ubuntu-20.10-preinstalled-server-arm64+raspi.img of=/dev/sda bs=4M conv=fsync