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

From: Ngie Cooper <yaneurabeya_at_gmail.com>
Date: Sat, 28 Jan 2017 13:23:20 -0800
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
Received on Sat Jan 28 2017 - 20:23:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:10 UTC