move files from ../common/ that are only used in this directory to here
This commit is contained in:
parent
7abb10eb65
commit
68e32c4166
@ -1,6 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.11 2002/04/26 03:15:15 lukem Exp $
|
||||
|
||||
TOP= ${.CURDIR}/..
|
||||
# $NetBSD: Makefile,v 1.12 2002/04/26 03:29:32 lukem Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
.include <bsd.kernobj.mk>
|
||||
@ -17,13 +15,9 @@ CRUNCHBIN= rd_bin
|
||||
LISTS= ${.CURDIR}/list
|
||||
MTREECONF= ${.CURDIR}/mtree.conf
|
||||
IMAGEENDIAN= be
|
||||
PARSELISTENV= TOPDIR=${TOP}
|
||||
MAKEDEVTARGETS= __ramdisk std md0 cd0 st0 st1 sd0 sd1 sd2 xd0 xy0
|
||||
IMAGEDEPENDS= ${CRUNCHBIN} \
|
||||
${TOPDIR}/common/rd.disktab ${TOPDIR}/common/rd.fstab \
|
||||
${TOPDIR}/common/rd.passwd ${TOPDIR}/common/rd.protocols \
|
||||
${TOPDIR}/common/rd.services ${TOPDIR}/common/rd.sshrc \
|
||||
${TOPDIR}/common/rd.welcome \
|
||||
disktab fstab passwd protocols services sshrc welcome \
|
||||
${_SRC_TOP_}/etc/netconfig
|
||||
|
||||
MDSETTARGETS= RAMDISK ramdisk.fs -
|
||||
|
2
distrib/sun2/ramdisk/disktab
Normal file
2
distrib/sun2/ramdisk/disktab
Normal file
@ -0,0 +1,2 @@
|
||||
# $NetBSD: disktab,v 1.1 2002/04/26 03:29:32 lukem Exp $
|
||||
# The ramdisk has no need for disktab (yet)
|
2
distrib/sun2/ramdisk/fstab
Normal file
2
distrib/sun2/ramdisk/fstab
Normal file
@ -0,0 +1,2 @@
|
||||
# $NetBSD: fstab,v 1.1 2002/04/26 03:29:32 lukem Exp $
|
||||
/dev/md0a / ufs rw 1 1
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# $NetBSD: list,v 1.1 2002/04/26 03:15:16 lukem Exp $
|
||||
# $NetBSD: list,v 1.2 2002/04/26 03:29:32 lukem Exp $
|
||||
#
|
||||
# ramdisk/list - packing list for the ramdisk.
|
||||
#
|
||||
@ -90,13 +90,13 @@ SPECIAL route srcdir distrib/utils/x_route
|
||||
SPECIAL umount srcdir distrib/utils/x_umount
|
||||
|
||||
# various files that we need in /etc for the install
|
||||
COPY ${TOPDIR}/common/rd.disktab etc/disktab
|
||||
COPY ${TOPDIR}/common/rd.fstab etc/fstab
|
||||
COPY ${TOPDIR}/common/rd.protocols etc/protocols
|
||||
COPY ${TOPDIR}/common/rd.services etc/services
|
||||
COPY ${TOPDIR}/common/rd.passwd etc/passwd
|
||||
COPY ${TOPDIR}/common/rd.sshrc .sshrc
|
||||
COPY ${TOPDIR}/common/rd.welcome .welcome
|
||||
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
|
||||
|
||||
COPY ${_SRC_TOP_}/etc/netconfig etc/netconfig
|
||||
|
||||
|
1
distrib/sun2/ramdisk/passwd
Normal file
1
distrib/sun2/ramdisk/passwd
Normal file
@ -0,0 +1 @@
|
||||
root::0:0:NetBSD RAM-disk root:/root:/bin/sh
|
6
distrib/sun2/ramdisk/protocols
Normal file
6
distrib/sun2/ramdisk/protocols
Normal file
@ -0,0 +1,6 @@
|
||||
#
|
||||
# etc/protocols (ramdisk version)
|
||||
# $NetBSD: protocols,v 1.1 2002/04/26 03:29:32 lukem Exp $
|
||||
#
|
||||
ip 0 IP
|
||||
icmp 1 ICMP
|
59
distrib/sun2/ramdisk/services
Normal file
59
distrib/sun2/ramdisk/services
Normal file
@ -0,0 +1,59 @@
|
||||
#
|
||||
# etc/services (ramdisk version)
|
||||
# $NetBSD: services,v 1.1 2002/04/26 03:29:33 lukem Exp $
|
||||
#
|
||||
tcpmux 1/tcp
|
||||
echo 7/tcp
|
||||
echo 7/udp
|
||||
discard 9/tcp sink null
|
||||
discard 9/udp sink null
|
||||
systat 11/tcp users
|
||||
daytime 13/tcp
|
||||
daytime 13/udp
|
||||
netstat 15/tcp
|
||||
chargen 19/tcp ttytst source
|
||||
chargen 19/udp ttytst source
|
||||
ftp-data 20/tcp
|
||||
ftp 21/tcp
|
||||
telnet 23/tcp
|
||||
smtp 25/tcp mail
|
||||
time 37/tcp timserver
|
||||
time 37/udp timserver
|
||||
nameserver 42/tcp name # IEN 116
|
||||
whois 43/tcp nicname
|
||||
domain 53/tcp nameserver
|
||||
domain 53/udp nameserver
|
||||
bootps 67/udp
|
||||
bootpc 68/udp
|
||||
tftp 69/udp
|
||||
#
|
||||
rje 77/tcp netrjs
|
||||
finger 79/tcp
|
||||
link 87/tcp ttylink
|
||||
kerberos 88/tcp krb5 # Kerberos v5
|
||||
kerberos 88/udp
|
||||
supdup 95/tcp
|
||||
# 100 - reserved
|
||||
hostnames 101/tcp hostname
|
||||
iso-tsap 102/tcp tsap
|
||||
#
|
||||
sunrpc 111/tcp
|
||||
sunrpc 111/udp
|
||||
nfs 2049/udp nfsd
|
||||
nfs 2049/tcp nfsd
|
||||
|
||||
|
||||
#
|
||||
# UNIX specific services
|
||||
#
|
||||
exec 512/tcp
|
||||
biff 512/udp comsat
|
||||
login 513/tcp
|
||||
who 513/udp whod
|
||||
shell 514/tcp cmd
|
||||
syslog 514/udp
|
||||
printer 515/tcp spooler
|
||||
talk 517/udp
|
||||
ntalk 518/udp
|
||||
route 520/udp router routed
|
||||
|
4
distrib/sun2/ramdisk/sshrc
Normal file
4
distrib/sun2/ramdisk/sshrc
Normal file
@ -0,0 +1,4 @@
|
||||
# .sshrc
|
||||
# $NetBSD: sshrc,v 1.1 2002/04/26 03:29:33 lukem Exp $
|
||||
path /sbin:/bin
|
||||
run cat /.welcome
|
27
distrib/sun2/ramdisk/welcome
Normal file
27
distrib/sun2/ramdisk/welcome
Normal file
@ -0,0 +1,27 @@
|
||||
|
||||
Welcome to the NetBSD/sun2 RAMDISK root!
|
||||
|
||||
This environment is designed to do only three things:
|
||||
1: Partition your disk (use the command: edlabel /dev/rsd0c)
|
||||
2: Copy a miniroot image into the swap partition (/dev/rsd0b)
|
||||
3: Reboot (using the swap partition, i.e. /dev/sd?b).
|
||||
|
||||
Note that the sun2 firmware cannot boot from a partition located
|
||||
more than 1 GB from the beginning of the disk, so the swap partition
|
||||
should be completely below the 1 GB boundary.
|
||||
|
||||
Copying the miniroot can be done several ways, allowing
|
||||
the source of the miniroot image to be on any of these:
|
||||
boot tape, NFS server, TFTP server, rsh server
|
||||
|
||||
The easiest is loading from tape, which is done as follows:
|
||||
mt -f /dev/nrst0 rewind
|
||||
mt -f /dev/nrst0 fsf 2
|
||||
dd bs=32k if=/dev/nrst0 of=/dev/rsd0b
|
||||
(For help with other methods, please see the install notes.)
|
||||
|
||||
To reboot using the swap partition, first use "halt",
|
||||
then at the PROM monitor prompt use a command like:
|
||||
b sd(,,1) -s
|
||||
|
||||
To view this message again, type: cat /.welcome
|
Loading…
Reference in New Issue
Block a user