1 1.1 lukem # 2 1.12 rin # $NetBSD: list,v 1.12 2020/10/04 23:50:59 rin Exp $ 3 1.1 lukem # 4 1.1 lukem # ramdisk/list - packing list for the ramdisk. 5 1.1 lukem # 6 1.1 lukem # The ramdisk root has to stay small enough so the kernel 7 1.1 lukem # can be loaded in less than one megabyte of ram, including 8 1.1 lukem # uninitialized data (bss). Otherwise it will not work on 9 1.1 lukem # the Sun2/50. This is not too hard, because the ONLY 10 1.1 lukem # tools needed in this root are those that one might use 11 1.1 lukem # to initialize the disk label and copy a miniroot image 12 1.1 lukem # into the swap partition. Everything else is done after 13 1.1 lukem # the machine is rebooted from the miniroot. 14 1.1 lukem # 15 1.1 lukem # Note that the "ln" directives below are not really about 16 1.1 lukem # filesystem links, but rather the ability of the resulting 17 1.1 lukem # crunched binary to select the right program when argv[0] 18 1.1 lukem # matches the names on right of the "ln prog" directive. 19 1.1 lukem # For example, the shell can be run with argv[0]="-sh" 20 1.1 lukem # (login shell convention) but no such file will exist. 21 1.1 lukem # Similarly, one may want to run "init" as "oinit"... 22 1.1 lukem # 23 1.1 lukem # Notes about what is included (or not) and why: 24 1.1 lukem # 25 1.1 lukem # Include mknod incase I forgot some device nodes... 26 1.1 lukem # Support copying miniroot from NFS, TFTP, or CDROM. 27 1.5 lukem # Need mount_ffs to remount the ramdisk. 28 1.1 lukem # 29 1.1 lukem # Might use cat to look at files (it's small anyway). 30 1.1 lukem # Need for copying miniroot from tape: dd, mt 31 1.1 lukem # Keep to allow minor fixes: ln, mkdir, mv 32 1.1 lukem # Small and handy: cat, echo, pwd, sync 33 1.1 lukem # 34 1.1 lukem # Note: ssh has no "if", so "test" is useless. Also, 35 1.1 lukem # left out: cp, chmod, rm. The ramdisk does not really 36 1.1 lukem # need them, and they pull in fts_* from libc. 37 1.1 lukem # 38 1.1 lukem # Might use these to get the miniroot: rsh, tftp 39 1.1 lukem # 40 1.1 lukem # Assume gunzip can run elsewhere, i.e.: 41 1.1 lukem # rsh gzcat sun2.miniroot.gz 42 1.1 lukem # No need to extract archives either... 43 1.1 lukem # 44 1.1 lukem 45 1.1 lukem SRCDIRS bin sbin usr.bin distrib/utils 46 1.1 lukem 47 1.1 lukem # From /usr/src/distrib/utils: 48 1.1 lukem PROG bin/dd 49 1.7 he PROG bin/tls bin/ls 50 1.1 lukem PROG bin/rsh 51 1.1 lukem PROG bin/ssh bin/sh bin/-sh 52 1.1 lukem # PROG bin/tftp 53 1.5 lukem PROG sbin/edlabel 54 1.5 lukem PROG sbin/ifconfig 55 1.5 lukem PROG sbin/init 56 1.5 lukem PROG sbin/route 57 1.1 lukem 58 1.1 lukem # From /usr/src/sbin: 59 1.1 lukem PROG sbin/mknod 60 1.1 lukem PROG sbin/mount 61 1.12 rin # PROG sbin/mount_cd9660 62 1.3 lukem PROG sbin/mount_ffs 63 1.12 rin # PROG sbin/mount_nfs 64 1.5 lukem PROG sbin/reboot sbin/halt 65 1.1 lukem PROG sbin/umount 66 1.1 lukem 67 1.1 lukem # From /usr/src/bin: 68 1.1 lukem PROG bin/cat 69 1.1 lukem # PROG bin/chmod 70 1.1 lukem # PROG bin/cp 71 1.1 lukem PROG bin/echo 72 1.1 lukem PROG bin/ln 73 1.1 lukem PROG bin/mkdir 74 1.1 lukem PROG bin/mt 75 1.1 lukem PROG bin/mv 76 1.1 lukem PROG bin/pwd 77 1.5 lukem PROG bin/rcmd 78 1.1 lukem # PROG bin/rm 79 1.1 lukem PROG bin/sync 80 1.1 lukem PROG bin/zcat 81 1.1 lukem 82 1.8 dyoung LIBS libhack.o -lrmt -lutil -lz -lprop 83 1.1 lukem 84 1.1 lukem # These are built with special flags to save a little space. 85 1.5 lukem SPECIAL ifconfig srcdir distrib/utils/x_ifconfig 86 1.7 he SPECIAL tls srcdir distrib/utils/tls 87 1.5 lukem SPECIAL route srcdir distrib/utils/x_route 88 1.5 lukem SPECIAL ssh srcdir distrib/utils/ssh 89 1.5 lukem SPECIAL umount srcdir distrib/utils/x_umount 90 1.11 abs SPECIAL edlabel srcdir distrib/utils/edlabel 91 1.1 lukem 92 1.1 lukem # various files that we need in /etc for the install 93 1.9 abs COPY ${CURDIR}/fstab etc/fstab 94 1.9 abs COPY ${CURDIR}/passwd etc/passwd 95 1.9 abs COPY ${CURDIR}/protocols etc/protocols 96 1.9 abs COPY ${DISTRIBDIR}/common/services etc/services 97 1.9 abs COPY ${CURDIR}/sshrc .sshrc 98 1.9 abs COPY ${CURDIR}/welcome .welcome 99 1.1 lukem 100 1.4 lukem COPY ${NETBSDSRCDIR}/etc/netconfig etc/netconfig 101 1.1 lukem 102 1.1 lukem # Fake /usr 103 1.5 lukem SYMLINK . usr 104 1.1 lukem 105 1.1 lukem # Shell lacks pipe support, so use this. 106 1.1 lukem CMD mkfifo dev/pipe 107