freebsd-src/usr.bin/mkimg
Warner Losh 9b42d3e12f mkimg: Ensure GPT Entry Array is at least 16k
UEFI v2.10 Section 5.3 documentes that the minimum reserved space after
the GPT header be at least 16kB. Enforce this minimum. Before, we'd only
set the number of entries to be the unpadded size. gpart's selective
enforcement of aspects of the GPT standard meant that these images would
work, but couldn't be changed (to add a partition or grow the size of a
partition). This ensures that gpart's overly picky standards don't cause
problems for people wishing to, for example, resize release images.

MFC after:		1 day (we want this in 14.0)
PR:			274312
Sponsored by:		Netflix
Reviewed by:		emaste
Differential Revision:	https://reviews.freebsd.org/D42245
2023-10-17 11:14:23 -06:00
..
tests Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
apm.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
bsd.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
ebr.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
endian.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
format.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
format.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
gpt.c mkimg: Ensure GPT Entry Array is at least 16k 2023-10-17 11:14:23 -06:00
image.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
image.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend.host Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend.options Build host tools on non-FreeBSD host with DIRDEPS_BUILD 2023-04-22 13:13:22 -07:00
mbr.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
mkimg.1 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
mkimg.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
mkimg.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
qcow.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
raw.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
scheme.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
scheme.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
uuid.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
vhd.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
vhdx.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
vmdk.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00