Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Dec 2009 12:29:38 +0100
From:      Rolf Nielsen <listreader@lazlarlyricon.com>
To:        alexs@ulgsm.ru
Cc:        freebsd-stable@freebsd.org
Subject:   Re: root partition too small
Message-ID:  <4B1CE722.4010705@lazlarlyricon.com>
In-Reply-To: <20091207061828.GA11820@mail.ulgsm.ru>
References:  <20091207061828.GA11820@mail.ulgsm.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
alexs@ulgsm.ru wrote:
> Label from freebsd sysinstall in auto mode, make root partition 500mb
> For update OS (kernel + kernel.old) need about 700mb
> 
> Howto rebild kernel with litsted in kldstat modules? 
> 

In your kernel config file, use

makeoptions MODULES_OVERRIDE="<the modules you need>"

E.g.

makeoptions MODULES_OVERRIDE="atapicam zfs geom_eli geom_journal"

will build only the atapicam, zfs, geom_eli and geom_journal modules.
To save even more space, you could remove the

makeoptions DEBUG=-g

This will prevent debug symbols for kernel and modules from being installed.

If that isn't enough, have a look at the src.conf(5) man page, for a 
list of options that let you choose what parts of the userland to install.

Cheers,

Rolf Nielsen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B1CE722.4010705>