Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Dec 2009 00:58:26 +0100
From:      Rolf G Nielsen <lazlar@lazlarlyricon.com>
To:        Oles Hnatkevych <don_oles@able.com.ua>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: build 7.x kernel without zfs
Message-ID:  <4B340022.30401@lazlarlyricon.com>
In-Reply-To: <4B33F802.8020407@able.com.ua>
References:  <4B33F802.8020407@able.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
Oles Hnatkevych wrote:
> Hi!
> 
> Since my installation has 496Mb on root partition, having to kernels 
> (current and old) there becomes pain, only 4Mb free left.
> 
> How can I build kernel without zfs module, since it consumes 12Mb with 
> symbols?
> 
> 

Hi Oles,

I'm not sure how to specify which modules not to build, but to build 
only the modules you need, use MODULES_OVERRIDE in your kernel config 
file. E.g. the following line will build and install only atapicam and 
ext2fs.

makeoptions MODULES_OVERRIDE="atapicam ext2fs"

To find out what modules you use, just type kldstat in the console, and 
add the listed modules to the MODULES_OVERRIDE.

You can also specify that you don't want debug symbols built by removing 
or commenting out the makeoptions DEBUG=-g line.

Rolf Nielsen



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