gptzfsboot grew a lot after skein support was added; need knob to control bloat

Ngie Cooper yaneurabeya at gmail.com
Sat Jan 28 21:23:22 UTC 2017


On Sat, Jan 28, 2017 at 1:03 PM, Ngie Cooper <yaneurabeya at gmail.com> wrote:
> On Sat, Jan 28, 2017 at 12:17 PM, Ngie Cooper <yaneurabeya at gmail.com> wrote:
> ...
>
>> After some creative hacking... tada!
>>
>> # find /usr/obj/usr/src/sys/boot/ -type f -name \*zfsboot -exec ls -l {} \;
>> -rw-r--r--  1 root  wheel  131584 Jan 28 12:07
>> /usr/obj/usr/src/sys/boot/i386/zfsboot/zfsboot
>> -rw-r--r--  1 root  wheel  47527 Jan 28 12:07
>> /usr/obj/usr/src/sys/boot/i386/gptzfsboot/gptzfsboot
>
> Bah. It's still 2kB too big. I'll see if I can free up some more space
> in the text area (there was a patch kicking around at $work that might
> alleviate this a few more kB).

Ok, found the patch.

After applying all the changes, it's finally under 44kB and I can
write the bootcode to my disk:

$ sudo gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0
partcode written to da0p1
bootcode written to da0

-Ngie


More information about the freebsd-current mailing list