From owner-freebsd-stable@FreeBSD.ORG Mon Dec 7 11:29:41 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9CCB0106566C for ; Mon, 7 Dec 2009 11:29:41 +0000 (UTC) (envelope-from listreader@lazlarlyricon.com) Received: from proxy2.bredband.net (proxy2.bredband.net [195.54.101.72]) by mx1.freebsd.org (Postfix) with ESMTP id 5C6668FC15 for ; Mon, 7 Dec 2009 11:29:41 +0000 (UTC) Received: from ipb1.telenor.se (195.54.127.164) by proxy2.bredband.net (7.3.140.3) id 4AD3E1BC0186DB78 for freebsd-stable@freebsd.org; Mon, 7 Dec 2009 12:29:40 +0100 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqVqABJ2HEtV44PPPGdsb2JhbACBS4c/kAqCUwEBAQE3u0WEMwQ X-IronPort-AV: E=Sophos;i="4.47,354,1257116400"; d="scan'208";a="12402663" Received: from c-cf83e355.09-42-6e6b7010.cust.bredbandsbolaget.se (HELO lazlar.kicks-ass.net) ([85.227.131.207]) by ipb1.telenor.se with ESMTP; 07 Dec 2009 12:29:39 +0100 Message-ID: <4B1CE722.4010705@lazlarlyricon.com> Date: Mon, 07 Dec 2009 12:29:38 +0100 From: Rolf Nielsen User-Agent: Thunderbird 2.0.0.23 (X11/20091130) MIME-Version: 1.0 To: alexs@ulgsm.ru References: <20091207061828.GA11820@mail.ulgsm.ru> In-Reply-To: <20091207061828.GA11820@mail.ulgsm.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: root partition too small X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Dec 2009 11:29:41 -0000 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="" 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