(05-22-2020, 05:29 AM)e-minguez Wrote: I'm curious on how did you created the image. Did you created a microsd per https://ftp.openbsd.org/pub/OpenBSD/6.7/...TALL.arm64 instructions, then you installed it in an USB, then created an image from that USB?
I want to give OpenBSD a try on my regular pinebook 1080p so if you have the steps it would be helpful
Thanks!
Sorry, for my late response. Sure...
I used a very dirty solution to create the image. But should also work with other OS'es.
Step 1:
Zero-out a microSD card. This step isn't necessary, but it results in a smaller compressed image.
Code:
$ dd if=/dev/zero of=/dev/sdx bs=1024
Step 2:
Install OpenBSD with a custom partition layout. For example: Make a partition with 3GiB and remember the size.
Step 3:
Simple copy the image from the microSD card with a greater size, as the created partition.
Code:
$ dd if=/dev/sdx of=/path/to/image.img count=3.5G
Step 4:
Compress the image.
Code:
$ xz -k /path/to/image.img
That's all. Quick and dirty! Okay, could be improved, but works.
Code:
/* Beware of bugs in the above code; I have only proved it correct, not tried it */