]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
mkimg: Add support for offset if the source is an image
authorEmmanuel Vadot <manu@FreeBSD.org>
Thu, 25 Feb 2021 17:10:19 +0000 (18:10 +0100)
committerEmmanuel Vadot <manu@FreeBSD.org>
Tue, 2 Mar 2021 14:21:08 +0000 (15:21 +0100)
commit856af5ff745f2687015a5564f8daf0cf6cde368d
treeb8936c0373a65effefe0ec1b9a5f40279f275c3c
parentf3054d18bfbd4629cb695922f3cd1fab36b1dc5b
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)
usr.bin/mkimg/mkimg.c