Commit Graph

97 Commits

Author SHA1 Message Date
Luigi Rizzo
f908e29f8d Cleanup the build scripts.
Approved-by: jordan
2000-02-08 08:25:00 +00:00
Greg Lehey
4b61b305c0 Handle building individual targets better. It's still broken; the
only way to be sure the build works correctly is to do a 'make all'.
But with these changes, it's easier to test individual targets.  In
particular, ensure that the vnode file systems are mounted before
writing to them.

Ensure that we don't get CVS directories on our floppies.

Use kgzip instead of kzip to compress the loader.  This saves a few
kB.

Remove some test cruft.
1999-12-20 02:07:42 +00:00
Jordan K. Hubbard
b99df5acb5 Correct slight stuff-up in previous patch. 1999-12-16 02:14:30 +00:00
Jordan K. Hubbard
bb0ea411a8 Update to use MD disk instead of MFS 1999-12-16 02:08:52 +00:00
Greg Lehey
2bdf2cff05 Add 'custom' directory with significantly restructured build (now
using make instead of custom scripts) and two floppies instead of
one.  The resultant floppy can do everything that the individual
floppies (dial, net, install, isp, router) could do, modulo some bit
rot that has occurred since PicoBSD last compiled.  It also includes
all the programs on the fixit floppy, which could thus also die.

/bin currently contains the following files:

-sh             dump            ln              ns              sps
[               ed              login           ping            stty
badsect         ex              ls              ps              swapon
cat             expr            mkdir           pwd             sync
chgrp           fdisk           mknod           pwd_mkdb        sysctl
chmod           find            more            rdump		syslogd
chown           fsck            mount           reboot          tar
chroot          ftp             mount_cd9660    restore         telnet
clri            getty           mount_msdos     rlogin		telnetd
cp              grep            mount_nfs       rm              test
date            gunzip          mount_std       rmdir		traceroute
dd              gzip            msg             route           umount
dev_mkdb        hostname        mt              routed          vi
df              ifconfig        mv              rrestore        view
dhclient        inetd           natd            rsh             vm
dhclient-script init            netstat         sed             w
disklabel       kget            newfs           sh              zcat
dmesg           kill            nfs             sleep

Structure is in place for using the same build for the other
directories, but I'm no longer sure we need this.  The current first
floppy will run fine by itself, but the size of a compressed kernel
has increased by nearly 50% since 3.2, and there's not much space for
anything useful on the remainder of the floppy.  The current method
creates a larger mfs and can read as many floppies as the user can
stand.  The footprint appears to be round 14 MB.

Work-sponsored-by:    Sitara Networks Inc.
1999-12-10 21:43:10 +00:00
Pierre Beyssac
58387d7595 A (harmless) forgotten MFS_ROOT -> MD_ROOT. 1999-11-30 21:41:11 +00:00
Doug White
96df778049 Change MFS sizes to 2400k since gzip will compact free space anyway.
Add 'install' to the internal floppy type list.
1999-10-20 04:48:35 +00:00
Doug White
eb5fe92141 Reverse the sense of the /mnt/boot/defaults dir check. This was causing
the bootloader to not load the loader.conf and thus the MFS image.  The result
was 'panic: no init'.
1999-10-17 22:42:57 +00:00
Doug White
5c52794973 Fix handling of the 'custom' directory symlink.
Properly abstract the PicoBSD build directory instead of depending too much
on pwd's and relative paths.

Submitted by:	 John Baldwin <jobaldwi@vt.edu>
1999-10-11 20:52:50 +00:00
Doug White
3eaa4cd425 Be explicit about kzip location to avoid accidentally calling KDE kzip. 1999-10-11 05:13:52 +00:00
Doug White
88e4dbacdb Add a new floppy type, install. This type builds a disk that can
slice, partition, newfs, and install FreeBSD from a tarball on a remote server.
Handy for doing mass-installs for server farms.

Documentation following shortly.
1999-10-08 04:00:21 +00:00
Doug White
0a2478e155 Remove tee from stage1 call. You can't capture the return code from stage1
(easily) so it gives false 'success' indications.
1999-08-29 19:16:29 +00:00
Doug White
a17382473e MFS: Dialog-ify 'reuse custom directory' question. 1999-08-29 19:11:11 +00:00
Roger Hardiman
fc7998f35f Backout my last commit. Exit status is $? 1999-08-28 08:04:15 +00:00
Peter Wemm
97d92980a9 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
Roger Hardiman
3795f47b11 'build' calls 'stage1'
The check for the exit status of the 'stage1' script was broken.
Change "X$?" != "X0" to "X?" != "X0"
1999-08-27 07:41:25 +00:00
Doug White
722eb6eda0 Add missing quote. 1999-08-25 01:12:55 +00:00
Luigi Rizzo
0b86462de0 Additional cleanup of the picobsd scripts.
Also bump Version to 0.445
1999-08-23 08:33:08 +00:00
Doug White
843fcabd9e Major PicoBSD update by luigi with some debugging help from myself.
. Now builds on -STABLE (-CURRENT is broken due to bugs)
. etc directory contents centralized instead of in each
  type directory (can exclude & override as desired)
. Removed extraneous language files (lang files for rc really necessary?)
. dialog-based build tool with support for custom floppy builds
. MFS image loads as a mfs_root module instead of compiled into kernel

THIS IS BROKEN ON CURRENT.  I'll MFC to -STABLE immediately following.
luigi tells me I have an OK from jkh on the MFC.

Submitted by:	luigi
1999-08-22 21:45:24 +00:00
Roger Hardiman
75663a1769 Update to PicoBSD 0.44 from RELENG_3 1999-06-14 15:45:56 +00:00
Andrzej Bialecki
9509885927 Take boot1/boot2 from their new place, i.e. /boot/, not from
(currently nonexistent) /usr/mdec/.

Submitted by:	luigi
1999-03-09 21:15:08 +00:00
Andrzej Bialecki
5a1e113f67 Copy the 'reboot' script only for "dial" floppy. 1999-02-15 00:27:00 +00:00
Andrzej Bialecki
f8ee1a074a Merge from RELENG_3. 1999-02-12 20:36:13 +00:00
Andrzej Bialecki
0b0da843a9 Next round of fixes before 3.1-RELEASE. 1999-01-19 23:02:05 +00:00
Andrzej Bialecki
b9068e0a34 Make transition to ELF kernel. Fix the userconfig_script handling. 1999-01-14 23:14:46 +00:00
Andrzej Bialecki
e5f43d0471 Allow to use other floppy sizes for "router" floppy. 1998-10-25 15:15:55 +00:00
Andrzej Bialecki
4204bf87ea Various fixups and corrections to match the 3.0-RELEASE tree.
The PicoBSD version is now 0.42.
1998-10-15 21:40:07 +00:00
Andrzej Bialecki
648e989921 Better handling of "custom" setup.
Submitted by:	Randal Masutani <randal@comtest.com>
1998-09-29 11:58:54 +00:00
Andrzej Bialecki
4570b54689 Small rearrangements for a bugfix release 0.41. 1998-09-26 17:27:26 +00:00
Andrzej Bialecki
fc0e233fe6 Correct comment in the "build" script about aout/ELF. 1998-09-23 14:54:46 +00:00
Andrzej Bialecki
e6ef826b4d All PicoBSD userland is now ELF. This buys us extra 15-30kB on the floppy.
NOTIE: If you don't use /usr/obj (or you wiped it), remember to clean also
the source tree of stale .depend and *.o files...
1998-09-22 15:40:00 +00:00
Andrzej Bialecki
53cf34b16e Hmm... Let's make the switch to non-DEVFS actually work. :-/ 1998-09-20 00:46:27 +00:00
Andrzej Bialecki
7162850184 Kill the remnants of DEVFS, since it's broken without the SLICE code...
Pity - it was _very_ handy.

This also required increasing of MFS size, so that PicoBSD consumes more
memory now...
1998-09-19 21:45:18 +00:00
Andrzej Bialecki
d687e84172 Update ucd-snmp to version 3.5. It's slightly bigger, so also increase
the MFS size of net and isp floppies.

Add comment to crunch.conf on how to prepare the ucd-snmp port to work
with the build process.

Submitted by:	Jim Flowers <jflowers@ezo.net>
1998-09-15 11:12:25 +00:00
Andrzej Bialecki
74632b447e Fix to properly newfs the MFS in case of custom setup. Mention this in docs.
Submitted by:	Richard Wackerbarth <rkw@Dataplex.NET>
1998-09-11 13:14:33 +00:00
Andrzej Bialecki
6c88a1f638 Change the way the help files are stored, and save ca. 30kB on the
"dial" floppy.

Submitted by:	Eric P. Scott <eps@sirius.com>
1998-09-07 19:00:34 +00:00
Andrzej Bialecki
771383c4b3 Set the ${suffix} only once... 1998-09-07 06:46:25 +00:00
Andrzej Bialecki
c7b3a66f65 Added special type of setup called 'custom'. It allows you to supply
your own config directory laid out exactly like the standard ones.

Suggested by:	Richard Wackerbarth <rkw@dataplex.net>
1998-09-04 19:38:57 +00:00
Andrzej Bialecki
856306b2f9 Set OBJFORMAT=aout to affect the whole build - for now, it seems that too
many tools needed to build the floppies are dependent on a.out...
1998-09-04 08:08:05 +00:00
Andrzej Bialecki
d3f8852a1b Minor fixes to 'clean' script.
Changed the 'build' script to use ../${TYPE}/conf/Makefile in order to
have true dependency of kernel image on the kernel config file.
1998-09-03 10:40:27 +00:00
Andrzej Bialecki
4805acd6f2 Set OBJFORMAT=aout, until crunchide learns about ELF format... 1998-09-03 10:16:03 +00:00
Andrzej Bialecki
b0dcafa983 Remove CVS directories from the target floppy.
Submitted by:	Eric P. Scott <eps@sirius.com>
1998-08-31 13:35:06 +00:00
Andrzej Bialecki
c9d8fd0a7b Initial import of PicoBSD v0.4 tree. 1998-08-27 17:38:45 +00:00
Poul-Henning Kamp
f8bb3e895f Add a "I know it points to my foot!" -f option.
PR:		3288
Reviewed by:	phk
Submitted by:	Martin Kammerhofer <dada@freepass.tu-graz.ac.at>
1997-09-18 18:27:34 +00:00
Peter Wemm
b97fa2ef50 Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
Jordan K. Hubbard
1130b656e5 Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
Poul-Henning Kamp
fc652b607f This is a helper program to patch a filesystem into a "MFS_ROOT" kernel. 1995-04-25 03:45:18 +00:00