From owner-freebsd-small@FreeBSD.ORG Tue Jun 15 07:32:52 2004 Return-Path: Delivered-To: freebsd-small@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F000716A4CE for ; Tue, 15 Jun 2004 07:32:52 +0000 (GMT) Received: from ares.wolfpond.org (ns1.wolfpond.org [62.212.96.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id E888A43D2D for ; Tue, 15 Jun 2004 07:32:50 +0000 (GMT) (envelope-from ftigeot@wolfpond.org) Received: from aoi.wolfpond.org (aoi.wolfpond.org [IPv6:2001:7a8:24db:1:20c:76ff:feb4:27e1]) by ares.wolfpond.org (8.12.10/8.12.10) with ESMTP id i5F7WGNf093003; Tue, 15 Jun 2004 09:32:16 +0200 (CEST) (envelope-from ftigeot@aoi.wolfpond.org) Received: from aoi.wolfpond.org (localhost [127.0.0.1]) by aoi.wolfpond.org (8.12.10/8.12.10) with ESMTP id i5F7WHv9020146; Tue, 15 Jun 2004 09:32:17 +0200 (CEST) (envelope-from ftigeot@aoi.wolfpond.org) Received: (from ftigeot@localhost) by aoi.wolfpond.org (8.12.10/8.12.10/Submit) id i5F7WH2U020145; Tue, 15 Jun 2004 09:32:17 +0200 (CEST) (envelope-from ftigeot) Date: Tue, 15 Jun 2004 09:32:17 +0200 From: Francois Tigeot To: Joe Schmoe Message-ID: <20040615073217.GA20038@aoi.wolfpond.org> References: <1087259406.34774.16.camel@wstaylorm.dand06.au.bytecraft.au.com> <20040615040428.27513.qmail@web53301.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040615040428.27513.qmail@web53301.mail.yahoo.com> User-Agent: Mutt/1.4.2.1i cc: freebsd-small@freebsd.org Subject: Re: Paring down a FreeBSD system for flash drive use ? X-BeenThere: freebsd-small@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jun 2004 07:32:53 -0000 On Mon, Jun 14, 2004 at 09:04:28PM -0700, Joe Schmoe wrote: > > Murray Taylor wrote: > Google for minibsd > > http://neon1.net/misc/minibsd.html > > Thanks - this is interesting. However, this is still somewhat of a brute force method for piecing things together - I thought there was some kind of elegant mechanism where you could edit make.conf or something, so that when you did a make world, it would skip the components that you didn't want to - and you could control it with much more granularity than you can in the custom menu in sysinstall ... does this sound familiar at all ? > > That is, forget that I am doing solid state / flash at all - what is the correct way to install FreeBSD without things like ppp, isdn, and other pieces of the _base_ system that you don't want ? You have to edit /etc/make.conf and add NO_xxx lines in it (look in /usr/share/examples/etc/make.conf). In addition, I use custom CFLAGS when possible. Sometimes -Os produces broken code (X11 comes to mind). My /etc/make.conf looks like this: CFLAGS=-Os -march=c3 -fno-strict-aliasing -pipe NO_ACPI=yes NO_CVS=true [more NO_xxx lines] I then install the new world in a separate directory: make world DESTDIR=/itx But even though this procedure gives a minimal system, it is too big for my requirements (FreeBSD + X11 + rdesktop in 16MB). I am still forced to pick and choose components by hand. -- Francois Tigeot