freebsd / poudriere

Port/Package build and test system
https://github.com/freebsd/poudriere/wiki
BSD 2-Clause "Simplified" License
389 stars 161 forks source link

image_zfs: Fix GPT+ZFS boot partition creation #1107

Closed jlduran closed 9 months ago

jlduran commented 9 months ago

Apparently #962 never really fixed the issue, just avoided a failed assertion.

Fix it by making a disposable copy of the gptzfsboot file, and truncate (or rather expand) it to 512K before passing it to mkimg as the freebsd-boot partition, in order to keep the same partition size that bsdinstall uses.

Fixes: #1098