Make crunched equivalent of pmax root diskimage.

Makefile.inc: build `miniroot' [sic]
	list: list of files to  crunch in
	dot.profile: start up sysinst on boot.
	diskimage.label.proto:  write diskimage label so kernel recomputes
				label at boot from SCSI geometry..
This commit is contained in:
jonathan 1998-11-17 02:38:17 +00:00
parent de6cfc033a
commit bcbe1e5b31
4 changed files with 134 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# $NetBSD: Makefile.inc,v 1.1 1998/11/17 02:38:17 jonathan Exp $
VND= vnd0c
#IMAGESIZE?= 8192 # 512 byte blocks
IMAGESIZE?= 65536 # 512 byte blocks: full 32-meg root.
NEWFSOPTS?= -c 64
DISKTYPE?= miniroot
#
# install bootblock, so that we can boot from there
#
#BOOTINSTALL=${DESTDIR}/usr/mdec/installboot ${DESTDIR}/usr/mdec/xxboot ${VND_RDEV}
PMAX_MDEC_CMD?=-B -b /usr/mdec/rzboot -s /usr/mdec/bootrz
LABEL_CMD?=${DESTDIR}/sbin/disklabel -r -w ${PMAX_MDEC_CMD} ${VND_RDEV}
# write bootblocks. Update label with fictious name and geometry
# that instructs kernel to recompute label from # SCSI geometry info
# (since one install method is to dd this onto the start of a disk.)
BOOTINSTALL= ${DESTDIR}/sbin/disklabel -r -R ${PMAX_MDEC_CMD} ${VND_RDEV} \
${.CURDIR}/../${MACHINE}/miniroot/diskimage.label.proto
# Write preliminary Label so that newfs succeeds when updating label.
PRELABEL=${LABEL_CMD} ${DISKTYPE}
PRELABEL=${BOOTINSTALL}

View File

@ -0,0 +1,24 @@
# /dev/rvnd1c:
type: SCSI
disk: install diskimag
label:
flags:
bytes/sector: 512
sectors/track: 53
tracks/cylinder: 15
sectors/cylinder: 795
cylinders: 1648
total sectors: 1312344
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
3 partitions:
# size offset fstype [fsize bsize cpg]
a: 65536 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 82*)
b: 131072 65536 unknown # (Cyl. 82*- 247*)
c: 65536 0 unknown # (Cyl. 0 - 82*)

View File

@ -0,0 +1,20 @@
# $NetBSD: dot.profile,v 1.1 1998/11/17 02:38:17 jonathan Exp $
PATH=/sbin:/bin:/usr/bin:/usr/sbin:/
export PATH
# get the terminal type
_loop=""
while [ "X${_loop}" = X"" ]; do
echo "" >& 2
echo "Setting terminal type. Options:" >& 2
echo " rcons for graphics console" >& 2
echo " vt100 for dumb serial terminal" >& 2
echo " xterm for xterm." >& 2
echo "" >& 2
eval `tset -s -m ":?$TERM"`
if [ "X${TERM}" != X"unknown" ]; then
_loop="done"
fi
done
sysinst

View File

@ -0,0 +1,65 @@
# $NetBSD: list,v 1.1 1998/11/17 02:38:17 jonathan Exp $
# pmax extra's: mountpoint for kernfs
SPECIAL mkdir kern
# extras in bin
LINK instbin bin/csh
LINK instbin bin/date
LINK instbin bin/rcp
LINK instbin bin/rcmd
# extras in sbin
LINK instbin sbin/disklabel
LINK instbin sbin/mount_ext2fs
LINK instbin sbin/fsck_ext2fs
LINK instbin sbin/mount_kernfs
# extras in /usr.bin
SYMLINK ../../instbin usr/bin/netstat
SYMLINK ../../instbin usr/bin/rsh
SYMLINK ../../instbin usr/bin/tset usr/bin/reset
SYMLINK ../../instbin usr/bin/vi
# crunchgen source directory specials: progs built in nonstandard places
CRUNCHSPECIAL vi srcdir usr.bin/vi/build
CRUNCHSPECIAL sysinst srcdir distrib/utils/sysinst/arch/pmax
# Minimize use of MFS
SYMLINK /tmp var/tmp
# copy the MAKEDEV script and make some devices
COPY ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV
COPY ${DESTDIR}/dev/MAKEDEV.local dev/MAKEDEV.local
SPECIAL cd dev; sh MAKEDEV all
SPECIAL /bin/rm dev/MAKEDEV dev/MAKEDEV.local
# we need the contents of /usr/mdec
COPYDIR ${DESTDIR}/usr/mdec /usr/mdec
# the zoneinfo (dont use)
#COPYDIR ${DESTDIR}/usr/share/zoneinfo usr/share/zoneinfo
# a subset termcap file
COPY ${ARCHDIR}/termcap.rcons usr/share/misc/termcap
# copy the kernel(s)
COPY ${CURDIR}/../../sys/arch/pmax/compile/GENERIC/netbsd.aout netbsd
COPY ${CURDIR}/../../sys/arch/pmax/compile/GENERIC/netbsd.ecoff netbsd.ecoff
#COPY ${CURDIR}/../../sys/arch/pmax/compile/INSTALL/nfsnetbsd.ecoff nfsnetbsd.ecoff
# various files that we need in /etc for the install
COPY ${DESTDIR}/etc/disktab etc/disktab.shadow
SYMLINK /tmp/disktab.shadow etc/disktab
SYMLINK /tmp/fstab.shadow etc/fstab
SYMLINK /tmp/resolv.conf.shadow etc/resolv.conf
SYMLINK /tmp/hosts etc/hosts
# and the installation tools
COPY ${ARCHDIR}/dot.profile .profile
LINK instbin sbin/sysinst