Hi, I’m trying to figure out how to shorten the time to create an SD card with a custom image on it.
Right now, I have to put the custom image on it, and let it boot with a USB stick to install the system user. This takes quite some work compared to simply copying an image to an SD card.
I was wondering if i can’t simply copy an already prepared SD card. So far the differences between 2 freshly prepared SD cards seem to be:
- machine ID in
system-data/etc/
- ssh keys in
system-data/etc/ssh/
. - a key in
system-data/var/lib/snapd/device/private-keys-v1/
Is there a way to generate those on a host pc? So i can simply copy an SD card and generate some device specific files.