Commit Graph

400 Commits

Author SHA1 Message Date
alfred
fa576c1371 de-__P() 2002-10-10 00:32:55 +00:00
markm
3a96862de2 Fix some bitrotted documentation. 2002-09-24 13:34:36 +00:00
luigi
e31dfef717 Make this compile again (libgmd now is a port, and remove some
binaries to save space).
2002-08-24 03:54:38 +00:00
luigi
9041010d1f Mention the special pathname @__CWD__@
Modify entry for libgmd (used by ssh) now that it is not part of the
base system anymore.
2002-08-24 03:33:31 +00:00
luigi
5aa57dad32 Add "tty" entry. 2002-07-14 14:18:16 +00:00
luigi
07a0562bbe Add entry for the "screen" program. 2002-07-14 14:17:28 +00:00
luigi
10860bee8b Not needed anymore. 2002-07-14 12:09:33 +00:00
luigi
156356de36 Replace a logverbose call with log 2002-07-14 12:07:06 +00:00
luigi
a71ca65652 Enable building of picobsd using CURRENT sources again.
Following a suggestion by Ruslan, the initial creation of the
includes and libraries (and build tools) is now done by
invoking "make buildworld" (with -DPICOBSD which eventually will
limit the amount of stuff built with a 2-line change in Makefile.inc1).
The correct environment is then used for subsequent builds.

Also remove write_mfs_in_kernel.c in favour of using dd

All the above is conditional on __FreeBSD_version, as the previous
method still worked for versions earlier than 500035, and I am
unsure on how the "new" method works for earlier versions.

Finally, note that the crunch.conf files need some work because
some libraries (e.g. gmd) have gone away from the base installation.
2002-07-14 09:07:13 +00:00
luigi
838d5cf5e5 Move creation of password databases before starting daemons,
otherwise the latter might fail because userids are not found.
2002-07-01 21:30:39 +00:00
mckusick
0694ff55c2 This commit adds basic support for the UFS2 filesystem. The UFS2
filesystem expands the inode to 256 bytes to make space for 64-bit
block pointers. It also adds a file-creation time field, an ability
to use jumbo blocks per inode to allow extent like pointer density,
and space for extended attributes (up to twice the filesystem block
size worth of attributes, e.g., on a 16K filesystem, there is space
for 32K of attributes). UFS2 fully supports and runs existing UFS1
filesystems. New filesystems built using newfs can be built in either
UFS1 or UFS2 format using the -O option. In this commit UFS1 is
the default format, so if you want to build UFS2 format filesystems,
you must specify -O 2. This default will be changed to UFS2 when
UFS2 proves itself to be stable. In this commit the boot code for
reading UFS2 filesystems is not compiled (see /sys/boot/common/ufsread.c)
as there is insufficient space in the boot block. Once the size of the
boot block is increased, this code can be defined.

Things to note: the definition of SBSIZE has changed to SBLOCKSIZE.
The header file <ufs/ufs/dinode.h> must be included before
<ufs/ffs/fs.h> so as to get the definitions of ufs2_daddr_t and
ufs_lbn_t.

Still TODO:
Verify that the first level bootstraps work for all the architectures.
Convert the utility ffsinfo to understand UFS2 and test growfs.
Add support for the extended attribute storage. Update soft updates
to ensure integrity of extended attribute storage. Switch the
current extended attribute interfaces to use the extended attribute
storage. Add the extent like functionality (framework is there,
but is currently never used).

Sponsored by: DARPA & NAI Labs.
Reviewed by:	Poul-Henning Kamp <phk@freebsd.org>
2002-06-21 06:18:05 +00:00
luigi
aa6e9d1c16 Add a few files which are needed to build "passwd" now that
the standard version of these files have been PAMified (and axed).
2002-06-20 21:17:33 +00:00
dd
546c187868 sysctl -w -> sysctl 2002-05-11 06:06:11 +00:00
luigi
6223cd220f Bring in a slightly older version of usr/bin/passwd which does not
require libpam and all the libraries that libpam brings in.
We have no room for those on picobsd images.
2002-05-05 20:43:27 +00:00
des
c91c856b3e Usage style sweep: spell "usage" with a small 'u'.
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.
2002-04-22 13:44:47 +00:00
ru
5d18e81fe2 Record libtelnet.a death. 2002-04-19 12:39:09 +00:00
ru
5046304da0 Align for const poisoning in -lutil. 2002-04-08 11:07:51 +00:00
ru
3b90653ad4 Synch with login/login.c,v 1.81: Switch to OpenPAM. 2002-04-08 10:58:01 +00:00
luigi
6e069f3e0f Fix handling of undefined variables.
Add override for /etc/rc.local .
Add hook to start syslogd if compiled-in and /etc/syslog.conf exists
2002-04-07 20:41:09 +00:00
asmodai
6671a6d787 Add a missing void in the parameter list of http_request(). 2002-04-07 17:42:27 +00:00
asmodai
51ff39dd13 Give functions proper return type, since the default is an integer, where
the author obviously meant a void since he doesn't return any values.

One caveat, http_request has three return()'s, but doesn't do anything
with it.  Either the code needs to be rewritten to take care of proper
error handling on that point, or the returns ripped out.  I made it void
for now.
2002-04-07 17:41:33 +00:00
asmodai
080879a340 Use %lld instead of %d in order to print struct stat's st_size, which is
an off_t.

PR:		29725
Submitted by:	Eugene Grosbein <eugen@svzserv.kemerovo.su>
2002-04-07 17:22:23 +00:00
asmodai
685b698c5c Garbage collect unused variables.
PR:		29725
Submitted by:	Eugene Grosbein <eugen@svzserv.kemerovo.su>
2002-04-07 17:16:28 +00:00
asmodai
5cf19a20b5 Actually print the port we are listening too when specified verbose mode.
PR:		29725
Submitted by:	Eugene Grosbein <eugen@svzserv.kemerovo.su>
2002-04-07 17:07:37 +00:00
abial
7380a4e23f Function declared void shouldn't return any value... 2002-03-27 20:10:53 +00:00
phk
a83aaaa1fa Modernize my email address. 2002-03-25 13:52:45 +00:00
luigi
2ba86cd7fa Add a few popular entries. 2002-03-24 21:13:53 +00:00
ru
8d0b687aee DESTDIR does not anymore does the -I${DESTDIR}/usr/include magic
in <bsd.prog.mk> and <bsd.lib.mk>.

Reviewed by:	luigi
2002-03-22 18:36:41 +00:00
luigi
6a3c0d6bbd Gracefully exit when no MFS signature is found in the kernel.
Add support for a new "import_files" option (see manpage for details).
2002-03-21 03:15:06 +00:00
luigi
9f5256956b Batch of fixes to the configuration files from Bruce Montague 2002-03-15 08:46:18 +00:00
luigi
58e09160d8 Make this compile again
Reported-by: Bruce Montague
2002-03-11 08:03:50 +00:00
luigi
b4df8285dc Make this compile again (increase MFS size, remove invalid option).
Reported-by: Bruce Montague
2002-03-11 08:03:07 +00:00
luigi
4b00728153 Fix detection of existing ssh host key, generate the new one
in floppy.tree instead of mfs_tree.

Do not cleanup ${BUILDDIR}/floppy.tree, it might be useful to look
at it after an image has been built.
2002-03-11 05:54:22 +00:00
luigi
fd72c2f396 Make appropriate changes to use devfs.
Add a reference to the fd_size variable to set floppy size.
2002-03-11 05:46:18 +00:00
luigi
9c6656b1fc Default to ee as EDITOR (some apps such as disklabel default to "vi"
which is not available).
2002-03-11 05:42:14 +00:00
luigi
7e561d6f11 Use machdep.guessed_bootdev to guess the boot device. 2002-03-11 05:15:44 +00:00
luigi
c1c5a4bac3 CURRENT has devfs, so we do not need to specify what devices we
want on the MFS image. Update the config files accordingly.
2002-03-10 21:12:23 +00:00
luigi
d3df8b8da3 Uncomment the entry for a getty on the serial port. Boxes with
a serial console can make use of it.
2002-03-10 21:11:35 +00:00
luigi
7e76af2b1e Add back the "sis" driver, we had some room left... 2002-03-10 21:10:25 +00:00
luigi
39b6c0c5ae With devfs, we do not need to initialize pty's permissions. 2002-03-10 20:47:26 +00:00
luigi
96114d7dd4 The probable boot device is "machdep.guessed_bootdev". 2002-03-10 20:37:04 +00:00
luigi
b47832af1b Remove host.conf, and introduce a way to override the content
of selected files (at the moment /etc/host.conf and /etc/resolv.conf)
from /etc/rc.conf , so the number of places to customize is
reduced.
2002-03-09 18:27:02 +00:00
luigi
b652f69310 Nuke abandoned configuration. 2002-03-09 08:28:11 +00:00
luigi
06d09f3444 Make this fit again into a 1.44 floppy.
We had to give up DDB and grep this time...

Add a hint in "config" on how to increase the image size so
we can stuff more things in the image (mostly for use on a CDROM).
2002-03-09 08:17:40 +00:00
luigi
5a5cf2ee2c Further cleanup: remove useless entries from PATH, and be prepared
to use kern.bootdevname (if available) to identify the boot device
for updating the configuration. Fallback to /dev/fd0 as before.
2002-03-08 12:43:57 +00:00
luigi
d904ce1a86 Add a (commented out) sample entry for use with a serial line. 2002-03-08 12:37:42 +00:00
luigi
57f0321e2a Do not depend on "expr" for doing arithmetic, use the shell builtin functions
(picobsd might not have the command available).
2002-03-08 12:33:48 +00:00
luigi
c910c6e5c8 Unbreak "update" script, by doing a mkdir -p of the relevant
directories when writing to disk.

Use the (yet to be committed) sysctl variable kern.bootdevname
to derive the device name, fallback to /dev/fd0 if kern.bootdevname
is unset or not available.
2002-03-08 12:14:46 +00:00
luigi
d51f2cb75f Use a default of 25 lines for xterm. This only affects the behaviour
over a serial line, because the terminal negotiations using ssh/telnet
does the right thing anyways.
2002-03-08 12:10:13 +00:00
luigi
cd753a9875 Major cleanup of PicoBSD startup scripts, which now should be
closer to doing "the right thing".

The structure is now the following:

  * /etc/rc (from MFS) loads the rest of /etc and /root from
    /fd and then from floppy (if present), then transfers control
    to /etc/rc1

  * /etc/rc1 loads defaults from /etc/rc.conf.defaults, tries to
    set the hostname basing on the MAC address of the first ethernet
    interface, and then sources /etc/rc.conf and /etc/rc.conf.local
    for local configurations

  * The rest of the startup process is then performed (rc.network and so on).

Everything except the initial /etc/rc (from MFS) can be overridden with
a local version loaded from floppy. But in most cases, you should only need
to customize the following files in /etc:

	rc.conf    rc.firewall    hosts

Previously there were a number of inconsistencies in the calling
between files, and also a lot of clutter in rc.conf and rc.firewall.
Also, "rc1" was called "rc" and would overwrite the initial /etc/rc
from MFS, making it really hard to figure out what was going on in
case of bugs.
2002-03-08 05:15:08 +00:00