Date: Fri, 18 Mar 2016 23:35:04 +0100 From: Guido Falsi <mad@madpilot.net> To: Freddie Cash <fjwcash@gmail.com>, cem@freebsd.org Cc: Allan Jude <allanjude@freebsd.org>, freebsd-current <freebsd-current@freebsd.org> Subject: Re: boot loaders got fatter in the last few days Message-ID: <56EC8298.5010503@madpilot.net> In-Reply-To: <CAOjFWZ44sJhggWvQgJQhrPQ=xecTGnAkmUxvSKbgELzXcDTUMg@mail.gmail.com> References: <56EC2DD3.6050803@madpilot.net> <56EC34CE.1000002@freebsd.org> <CAG6CVpUxrmsLg=UROqqo_SKmqrqJMTtqyrij63nxigb5eB=WPA@mail.gmail.com> <CAOjFWZ44sJhggWvQgJQhrPQ=xecTGnAkmUxvSKbgELzXcDTUMg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 03/18/16 22:41, Freddie Cash wrote: > On Fri, Mar 18, 2016 at 10:39 AM, Conrad Meyer <cem@freebsd.org> wrote: > >> On Fri, Mar 18, 2016 at 10:03 AM, Allan Jude <allanjude@freebsd.org> >> wrote: >>> On 2016-03-18 12:33, Guido Falsi wrote: >>>> >>>> Hi, >>>> >>>> I have just update one of my machines and noticed the booloaders files >>>> got quite fat in the last few days, some by a big margin. >>>> >>>> on an updated machine(r296993): >>>> >>>> -r--r--r-- 1 root wheel 85794 Mar 18 16:47 /boot/gptboot >>>> >>>> from a machine I still have not updated(r296719): >>>> >>>> -r--r--r-- 1 root wheel 16059 Mar 13 21:01 /boot/gptboot >> >> So the loader grew 70 kB. How big are your disks? >> >>>> I noticed because mu gpt boot partition is 64K and gptzfsboot just >>>> passed 100K. >>> >>> This is a side effect of the loader gaining the ability to boot from GELI >>> encrypted partitions. >>> >>> ... >>> >>> Maybe we should be putting the GELI enabled boot blocks in a different >>> filename? I generally wanted to avoid creating a new version of each >>> bootcode with GELI support. >> >> >> I think we should just suggest that boot partitions be much larger >> than 64kB (1MB is still <0.1% of any disk sold today) and not worry >> about it too much. Embedded applications can disable GELI loader >> support to save a few bytes. >> > > The boot partition doesn't necessarily need > > to be 1 MB (and can't due to some issues with the assembler used right > now, or something like that). We just need to make sure people have slack > space in their partition table to expand into in the future. My strategy, which helped me in this case, is having swap space just after the boot partition, in this way I can just resize the swap space and boot partition and reorganize the system. The OS will not comply about a few hundred Kilobytes swap less :) -- Guido Falsi <mad@madpilot.net>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56EC8298.5010503>