4.3BSD-Reno/src/sys/tahoedist/buildboot

#!/bin/sh -
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted provided
# that: (1) source distributions retain this entire copyright notice and
# comment, and (2) distributions including binaries display the following
# acknowledgement:  ``This product includes software developed by the
# University of California, Berkeley and its contributors'' in the
# documentation or other materials provided with the distribution and in
# all advertising materials mentioning features or use of this software.
# Neither the name of the University nor the names of its contributors may
# be used to endorse or promote products derived from this software without
# specific prior written permission.
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
#	@(#)buildboot	1.6 (Berkeley) 7/4/90
#

boot=dk2b			# partition to build bootstrap FS on
boottype=xfd			# type of ${boot} partition
bootmnt=/tmp/mini		# mount point
DISTROOT=/nbsd			# place to get programs from

date
umount /dev/${boot}
newfs -s 1500 ${boot} ${boottype}
fsck /dev/r${boot}

mkdir ${bootmnt};
mount /dev/${boot} ${bootmnt}

# HCX-9 programs (HCX-7 too?; not positive this is right, either)
#cp -p $DISTROOT/stand/copy ${bootmnt}
#cp -p $DISTROOT/stand/vdformat ${bootmnt}
#cp -p $DISTROOT/boot ${bootmnt}
# END HCX-9 programs

# TAHOE programs
cp -p $DISTROOT/stand/copy ${bootmnt}
cp -p $DISTROOT/stand/vdformat ${bootmnt}
cp -p $DISTROOT/boot ${bootmnt}
cp -p $DISTROOT/wcs ${bootmnt}
cp -p $DISTROOT/fppwcs ${bootmnt}
# END TAHOE programs

sync
umount /dev/${boot}
fsck /dev/r${boot}
date