HomeFreeBSD

mkimg: Add support for offset if the source is an image

Description

mkimg: Add support for offset if the source is an image

This allow us to create image with the following format:
mkimg -v -o sdcard -s gpt -p efi:=esp_aarch64.img:1M -p freebsd-ufs::1G

Which will add a efi partition at a 1M offset on the image with its content
coming from the esp_aarch64.img file.

MFC after: 3 days
Approved by: re (gjb)
(cherry picked from commit 8f3c71c85e5f6a4d2bddbfead225d33b96dbd7d7)
(cherry picked from commit 6f6c6480047ba1ebbc398c1052446e35f8a4ecab)

Details

Provenance
manuAuthored on Feb 25 2021, 5:10 PM
Parents
rGf3054d18bfbd: mkimg: We always want the last block of the last inserted partition
Branches
Unknown
Tags
Unknown