1995-10-09 02:07:44 +03:00
|
|
|
#
|
1997-12-13 01:37:19 +03:00
|
|
|
# $NetBSD: rd_bin.conf,v 1.4 1997/12/12 22:39:10 gwr Exp $
|
1995-10-09 02:07:44 +03:00
|
|
|
#
|
|
|
|
# common/rd_bin.conf - unified binary for the ramdisk.
|
|
|
|
#
|
|
|
|
# The ramdisk root has to stay small enough so the kernel
|
|
|
|
# can be loaded in less than one megabyte of ram, including
|
|
|
|
# uninitialized data (bss). Otherwise it will not work on
|
|
|
|
# the Sun3/50. This is not too hard, because the ONLY
|
|
|
|
# tools needed in this root are those that one might use
|
|
|
|
# to initialize the disk label and copy a miniroot image
|
|
|
|
# into the swap partiton. Everything else is done after
|
|
|
|
# the machine is rebooted from the miniroot.
|
|
|
|
#
|
|
|
|
# Note that the "ln" directives below are not really about
|
|
|
|
# filesystem links, but rather the ability of the resulting
|
|
|
|
# crunched binary to select the right program when argv[0]
|
|
|
|
# matches the names on right of the "ln prog" directive.
|
|
|
|
# For example, the shell can be run with argv[0]="-sh"
|
|
|
|
# (login shell convention) but no such file will exist.
|
|
|
|
# Similarly, one may want to run "init" as "oinit"...
|
|
|
|
#
|
|
|
|
# Notes about what is included (or not) and why:
|
|
|
|
#
|
|
|
|
# Include mknod incase I forgot some device nodes...
|
|
|
|
# Support copying miniroot from NFS, TFTP, or CDROM.
|
|
|
|
# Need mount_ffs, mount_ufs to remount the ramdisk.
|
|
|
|
#
|
|
|
|
# Might use cat to look at files (it's small anyway).
|
|
|
|
# Need for copying miniroot from tape: dd, mt
|
|
|
|
# Keep to allow minor fixes: ln, mkdir, mv
|
|
|
|
# Small and handy: cat, echo, pwd, sync
|
|
|
|
#
|
|
|
|
# Note: ssh has no "if", so "test" is useless. Also,
|
|
|
|
# left out: cp, chmod, rm. The ramdisk does not really
|
|
|
|
# need them, and they pull in fts_* from libc.
|
|
|
|
#
|
|
|
|
# Might use these to get the miniroot: rsh, tftp
|
|
|
|
#
|
|
|
|
# Assume gunzip can run elsewhere, i.e.:
|
|
|
|
# rsh gzcat sun3.miniroot.gz
|
|
|
|
# No need to extract archives either...
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Here are all the programs, ordered by source location:
|
|
|
|
|
|
|
|
# Special programs used to save space...
|
1995-11-22 00:18:48 +03:00
|
|
|
srcdirs distrib/utils
|
1996-10-09 04:13:36 +04:00
|
|
|
progs init_s ssh tls zcat
|
1995-10-09 02:07:44 +03:00
|
|
|
ln init_s init oinit
|
|
|
|
ln ssh sh
|
|
|
|
ln ssh -sh # login shell (not actual file name)
|
|
|
|
ln tls ls
|
1996-10-09 04:13:36 +04:00
|
|
|
|
1995-10-09 02:07:44 +03:00
|
|
|
# These are built with special flags to save a little space.
|
|
|
|
# The x_ prefix is just to make them unique among all srcdirs.
|
1996-10-09 04:13:36 +04:00
|
|
|
progs x_dd x_ifconfig x_route
|
1995-10-09 02:07:44 +03:00
|
|
|
ln x_dd dd
|
|
|
|
ln x_ifconfig ifconfig
|
1996-10-09 04:13:36 +04:00
|
|
|
ln x_route route
|
1995-10-09 02:07:44 +03:00
|
|
|
|
1995-11-22 00:18:48 +03:00
|
|
|
srcdirs sbin
|
1995-10-09 02:07:44 +03:00
|
|
|
progs edlabel mknod mount
|
|
|
|
progs mount_cd9660 mount_ffs mount_nfs
|
|
|
|
progs reboot umount
|
|
|
|
ln mount_ffs ffs mount_ufs ufs
|
|
|
|
ln mount_nfs nfs
|
|
|
|
ln mount_cd9660 cd9660
|
|
|
|
ln reboot halt
|
|
|
|
|
1995-11-22 00:18:48 +03:00
|
|
|
srcdirs bin
|
1995-10-09 02:07:44 +03:00
|
|
|
progs cat echo ln mkdir mt mv pwd sync
|
|
|
|
|
1995-11-22 00:18:48 +03:00
|
|
|
srcdirs usr.bin
|
1997-12-13 01:37:19 +03:00
|
|
|
progs rsh
|
|
|
|
# progs tftp
|
1995-10-09 02:07:44 +03:00
|
|
|
|
1995-11-22 00:18:48 +03:00
|
|
|
# srcdirs usr.sbin
|
1995-10-09 02:07:44 +03:00
|
|
|
|
1995-11-22 00:18:48 +03:00
|
|
|
# srcdirs gnu/usr.bin
|
1995-10-09 02:07:44 +03:00
|
|
|
# progs cpio, gzip, tar
|
|
|
|
# ln gzip gzcat gunzip
|
|
|
|
|
1997-12-13 01:37:19 +03:00
|
|
|
libs libhack.o -lrmt -lutil -lz
|