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

(cherry picked from commit 8f3c71c85e5f6a4d2bddbfead225d33b96dbd7d7)

Details

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