| From | Sent On | Attachments |
|---|---|---|
| Joe Schmoe | Jun 15, 2004 12:16 am | |
| Murray Taylor | Jun 15, 2004 12:34 am | |
| Joe Schmoe | Jun 15, 2004 4:04 am | |
| Bruce R. Montague | Jun 15, 2004 4:47 am | |
| Bruce R. Montague | Jun 15, 2004 4:57 am | |
| Murray Taylor | Jun 15, 2004 5:25 am | |
| Francois Tigeot | Jun 15, 2004 7:33 am | |
| Claudiu Chirita | Jun 15, 2004 8:00 am | |
| Francois Tigeot | Jun 15, 2004 8:44 am | |
| Dirk-Willem van Gulik | Jun 15, 2004 9:13 am | |
| Chad R. Larson | Jun 16, 2004 2:09 am | |
| Murray Taylor | Jun 16, 2004 3:40 am | |
| M. Warner Losh | Jun 16, 2004 5:45 am | |
| M. Warner Losh | Jun 16, 2004 5:53 am | |
| Murray Taylor | Jun 16, 2004 6:49 am | |
| M. Warner Losh | Jun 18, 2004 12:40 am |
| Subject: | Paring down a FreeBSD system for flash drive use ? | |
|---|---|---|
| From: | Francois Tigeot (ftig...@wolfpond.org) | |
| Date: | Jun 15, 2004 7:33:01 am | |
| List: | org.freebsd.freebsd-small | |
On Mon, Jun 14, 2004 at 09:04:28PM -0700, Joe Schmoe wrote:
Murray Taylor <murr...@bytecraftsystems.com> 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





