From owner-freebsd-questions@FreeBSD.ORG Thu Dec 24 23:58:29 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B07AF106568F for ; Thu, 24 Dec 2009 23:58:29 +0000 (UTC) (envelope-from lazlar@lazlarlyricon.com) Received: from proxy1.bredband.net (proxy1.bredband.net [195.54.101.71]) by mx1.freebsd.org (Postfix) with ESMTP id 69B178FC13 for ; Thu, 24 Dec 2009 23:58:29 +0000 (UTC) Received: from ipb2.telenor.se (195.54.127.165) by proxy1.bredband.net (7.3.140.3) id 4AD3E1C001F8B591 for freebsd-questions@freebsd.org; Fri, 25 Dec 2009 00:58:28 +0100 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah9KAJqOM0tV44PPPGdsb2JhbACBSoIihFeTDAEBAQE3qk8GjxqBLYIuWAQ X-IronPort-AV: E=Sophos;i="4.47,452,1257116400"; d="scan'208";a="19850846" Received: from c-cf83e355.09-42-6e6b7010.cust.bredbandsbolaget.se (HELO lazlar.kicks-ass.net) ([85.227.131.207]) by ipb2.telenor.se with ESMTP; 25 Dec 2009 00:58:28 +0100 Message-ID: <4B340022.30401@lazlarlyricon.com> Date: Fri, 25 Dec 2009 00:58:26 +0100 From: Rolf G Nielsen User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Oles Hnatkevych References: <4B33F802.8020407@able.com.ua> In-Reply-To: <4B33F802.8020407@able.com.ua> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: build 7.x kernel without zfs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Dec 2009 23:58:29 -0000 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