public_docs/rpi/bootstrap.md

19 lines
523 B
Markdown
Raw Permalink Normal View History

2022-03-16 14:20:44 +00:00
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