make release and mfsroot

Devin Teske devin.teske at fisglobal.com
Tue Dec 11 22:05:12 UTC 2012


On Dec 11, 2012, at 1:50 PM, Rick Miller wrote:

> Hi Devin,
> 
> On Tue, Dec 11, 2012 at 4:22 PM, Devin Teske <devin.teske at fisglobal.com> wrote:
>> Hi Rick,
>> 
>> If you want, you could follow my approach which is to take the completed
>> mfsroot.gz and use a Makefile to manage the creation of custom mfsroots
>> (keeping the original unmodified, making it simpler to test different
>> iterations).
> 
> Very interesting approach.  I like it and will test it.
> 
> It looks as though I would need to add code to the Makefile if files
> copied in later are greater in size than the space available.  Would
> you agree?

Oh… forgot to mention…

The Makefile doesn't adjust the mfsroot's size.

What I do to solve that problem is patch the release(7) process to make a bigger mfsroot (and thusly has room for more "stuff") -- this allows me to keep the customizations of "what goes in" at a higher level (separate from release(7)) while not having to write a lot of code for resizing the mfsroot.

NOTE: I've actually run into major problems with resizing an mfsroot -- trust me, it's safer to stick with bumping the sectors in the release(7) makefile.

If you're working in the 8.x line, take a look at this patch for bumping the mfsroot size:

http://druidbsd.cvs.sourceforge.net/viewvc/druidbsd/druidbsd/druid83/dep/freebsd/patches/world_patches/release%3A%3AMakefile.patch?revision=1.1&view=markup

Meanwhile, for the 9.x line:

http://druidbsd.cvs.sourceforge.net/viewvc/druidbsd/druidbsd/druid/dep/freebsd/patches/world_patches/release%3A%3AMakefile.sysinstall.patch?revision=1.1&view=markup

NOTE: For your purposes, you'll only need the first hunk (the second hunk is needed for other reasons -- reasons that are documented in the "README" one-level-up in the "patches" directory from the above links).


> 
>> The advantage is that you don't have to re-perform the release(7) process
>> each time you want to make a change to your mfsroot.
> 
> This is a very compelling advantage.
> 

Though, to resize the mfsroot, I still rely on release(7) and the above patches.

I've personally never had a need to go beyond 6000 sectors, but I know the guys at Yahoo have gone much further.
-- 
Devin

_____________
The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.


More information about the freebsd-questions mailing list