2001-05-18 04:16:36 +04:00
|
|
|
#
|
2002-04-26 19:50:21 +04:00
|
|
|
# $NetBSD: list,v 1.4 2002/04/26 15:50:48 lukem Exp $
|
2001-05-18 04:16:36 +04:00
|
|
|
#
|
2002-04-23 01:17:48 +04:00
|
|
|
# ramdisk/list - packing list for the ramdisk.
|
2001-05-18 04:16:36 +04:00
|
|
|
#
|
|
|
|
# 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 Sun2/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
|
2001-07-27 02:47:34 +04:00
|
|
|
# into the swap partition. Everything else is done after
|
2001-05-18 04:16:36 +04:00
|
|
|
# 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 sun2.miniroot.gz
|
|
|
|
# No need to extract archives either...
|
|
|
|
#
|
|
|
|
|
2002-04-23 01:17:48 +04:00
|
|
|
SRCDIRS bin sbin usr.bin distrib/utils
|
2001-05-18 04:16:36 +04:00
|
|
|
|
2002-04-23 01:17:48 +04:00
|
|
|
# From /usr/src/distrib/utils:
|
|
|
|
PROG sbin/init
|
|
|
|
PROG sbin/ifconfig
|
|
|
|
PROG sbin/edlabel
|
|
|
|
PROG sbin/route
|
|
|
|
PROG bin/dd
|
|
|
|
PROG bin/ls
|
|
|
|
PROG bin/rsh
|
|
|
|
PROG bin/ssh bin/sh bin/-sh
|
|
|
|
# PROG bin/tftp
|
2001-05-18 04:16:36 +04:00
|
|
|
|
2002-04-23 01:17:48 +04:00
|
|
|
# From /usr/src/sbin:
|
|
|
|
PROG sbin/reboot sbin/halt
|
|
|
|
PROG sbin/mknod
|
|
|
|
PROG sbin/mount
|
2002-04-26 07:38:19 +04:00
|
|
|
PROG sbin/mount_cd9660
|
|
|
|
PROG sbin/mount_ffs
|
|
|
|
PROG sbin/mount_nfs
|
2002-04-23 01:17:48 +04:00
|
|
|
PROG sbin/umount
|
|
|
|
|
|
|
|
# From /usr/src/bin:
|
|
|
|
PROG bin/cat
|
|
|
|
# PROG bin/chmod
|
|
|
|
# PROG bin/cp
|
|
|
|
PROG bin/echo
|
|
|
|
PROG bin/ln
|
|
|
|
PROG bin/mkdir
|
|
|
|
PROG bin/mt
|
|
|
|
PROG bin/mv
|
|
|
|
PROG bin/pwd
|
|
|
|
# PROG bin/rm
|
|
|
|
PROG bin/sync
|
|
|
|
PROG bin/zcat
|
|
|
|
PROG bin/rcmd
|
2001-05-18 04:16:36 +04:00
|
|
|
|
2002-04-23 01:17:48 +04:00
|
|
|
LIBS libhack.o -lrmt -lutil -lz
|
2001-05-18 04:16:36 +04:00
|
|
|
|
2002-04-23 01:17:48 +04:00
|
|
|
# These are built with special flags to save a little space.
|
2002-04-26 07:15:15 +04:00
|
|
|
SPECIAL ls srcdir distrib/utils/tls
|
|
|
|
SPECIAL ssh srcdir distrib/utils/ssh
|
|
|
|
SPECIAL ifconfig srcdir distrib/utils/x_ifconfig
|
|
|
|
SPECIAL mount srcdir distrib/utils/x_mount
|
|
|
|
SPECIAL route srcdir distrib/utils/x_route
|
|
|
|
SPECIAL umount srcdir distrib/utils/x_umount
|
2001-05-18 04:16:36 +04:00
|
|
|
|
2002-04-23 01:17:48 +04:00
|
|
|
# various files that we need in /etc for the install
|
2002-04-26 07:29:32 +04:00
|
|
|
COPY ${CURDIR}/disktab etc/disktab
|
|
|
|
COPY ${CURDIR}/fstab etc/fstab
|
|
|
|
COPY ${CURDIR}/passwd etc/passwd
|
|
|
|
COPY ${CURDIR}/protocols etc/protocols
|
|
|
|
COPY ${CURDIR}/services etc/services
|
|
|
|
COPY ${CURDIR}/sshrc .sshrc
|
|
|
|
COPY ${CURDIR}/welcome .welcome
|
2001-05-18 04:16:36 +04:00
|
|
|
|
2002-04-26 19:50:21 +04:00
|
|
|
COPY ${NETBSDSRCDIR}/etc/netconfig etc/netconfig
|
2001-05-18 04:16:36 +04:00
|
|
|
|
2002-04-23 01:17:48 +04:00
|
|
|
# Fake /usr
|
|
|
|
SYMLINK . usr
|
2001-05-18 04:16:36 +04:00
|
|
|
|
2002-04-23 01:17:48 +04:00
|
|
|
# Shell lacks pipe support, so use this.
|
|
|
|
CMD mkfifo dev/pipe
|