NetBSD/distrib/utils
jonathan b3da2a1b88 Fix target prefixing to handle both root-in-swap (traditional miniroot)
and current-root-is-target-root (pmax diskimage.

 * Add code to check disk names (e.g., "sd0") against the current
   kern.root_device  sysctl (whic  does *not* include a partition).

 * Add new function must_mount_root():
   check to see if it's the same device as the root.  If not,
   the current and target root partitions cannot overlap.
   If they do, do statfs() on "/", and return 1 iff we get back
   "root_device" as the mounted-on filesystem, otherwise zero.

* Call must_mount_root() right after the user specifies a disk as
  install/upgrade target, and  if it returns 1, print a message asking
  them to mount root, and abort.

*  Use statfs("/")  mounted_from string to check if a disk partition
    (e.g., "sd0a") matches the current root.
1997-11-09 12:47:06 +00:00
..
init_s use CPPFLAGS instead of CFLAGS 1997-10-22 01:42:36 +00:00
libhack merge in 1.2 branch 1996-10-09 00:13:36 +00:00
script-installer improve the net interface config stuff 1997-08-15 23:03:57 +00:00
ssh
sysinst Fix target prefixing to handle both root-in-swap (traditional miniroot) 1997-11-09 12:47:06 +00:00
tls
x_dd use CPPFLAGS instead of CFLAGS 1997-10-22 02:11:56 +00:00
x_ifconfig use CPPFLAGS instead of CFLAGS 1997-10-22 02:11:56 +00:00
x_route use CPPFLAGS instead of CFLAGS 1997-10-22 02:20:09 +00:00
zcat use CPPFLAGS instead of CFLAGS 1997-10-22 02:20:09 +00:00
Makefile Minor cleanup 1995-10-13 18:10:06 +00:00
Makefile.inc Replace BSDSRCDIR use with relative paths. 1996-03-27 04:48:28 +00:00
README Minor cleanup 1995-10-13 18:10:06 +00:00

README

From: "Gordon W. Ross" <gwr>
Date: Tue, 3 Oct 95 16:37:39 EDT
Subject: New ramdisk, tiny shell, etc.
[ edited since the original mail ]

As part of my efforts to build a RAM-disk root kernel for the
sun3 port, I've developed some things that others may want:

New RAM-disk: [ see sys/dev/ramdisk.c ]

New "small/tiny" tools, to replace some of the larger
programs that one usually wants on a ramdisk root:

ssh: (small shell)
  * Consumes only about 8K of memory on an m68k!
    (saves about 100K in the ramdisk...)
  * Can run programs, possibly with I/O redirection
  * Just enough to let you run the programs needed
    while partitioning and copying miniroot to swap.

tls: (tiny ls)
  * Consumes only about 4K of memory on an m68k!
    (saves about 10K in the ramdisk...)
  * Long format only, nothing fancy.

Also, in the new "src/distrib/utils" area, I've made build
directories for some programs that build smaller versions,
usually by adding special CFLAGS

init_s:  (built with -DLETS_GET_SMALL)
  * Forces single-user mode
  * Eliminates unnecessary code

libhack:   small implementation of some libc functions
  * Needs only /etc/passwd (not pwd.db, spwd.db)
  * Reduces size of an m68k crunched binary by about 64K

x_dd:  built with -DNO_CONV (no conv=* options)

x_ifconfig:  supports inet only

The x_ prefix on the above is to make the names unique so
crunchgen will not confuse them with the real sources.