head	1.1;
branch	1.1.1;
access;
symbols
	perseant-exfatfs-base-20250801:1.1.1.2
	perseant-exfatfs-base-20240630:1.1.1.2
	perseant-exfatfs:1.1.1.2.0.144
	perseant-exfatfs-base:1.1.1.2
	bouyer-sunxi-drm:1.1.1.2.0.142
	bouyer-sunxi-drm-base:1.1.1.2
	cjep_sun2x:1.1.1.2.0.140
	cjep_sun2x-base:1.1.1.2
	cjep_staticlib_x-base1:1.1.1.2
	cjep_staticlib_x:1.1.1.2.0.138
	cjep_staticlib_x-base:1.1.1.2
	thorpej-futex-base:1.1.1.2
	bouyer-xenpvh-base2:1.1.1.2
	phil-wifi-20200421:1.1.1.2
	bouyer-xenpvh-base1:1.1.1.2
	phil-wifi-20200411:1.1.1.2
	bouyer-xenpvh:1.1.1.2.0.136
	bouyer-xenpvh-base:1.1.1.2
	phil-wifi-20200406:1.1.1.2
	ad-namecache-base3:1.1.1.2
	ad-namecache-base2:1.1.1.2
	ad-namecache-base1:1.1.1.2
	ad-namecache:1.1.1.2.0.134
	ad-namecache-base:1.1.1.2
	isaki-audio2:1.1.1.2.0.132
	isaki-audio2-base:1.1.1.2
	pgoyette-compat-merge-20190127:1.1.1.2
	pgoyette-compat-20190127:1.1.1.2
	pgoyette-compat-20190118:1.1.1.2
	pgoyette-compat-1226:1.1.1.2
	pgoyette-compat-1126:1.1.1.2
	pgoyette-compat-1020:1.1.1.2
	pgoyette-compat-0930:1.1.1.2
	pgoyette-compat-0906:1.1.1.2
	pgoyette-compat-0728:1.1.1.2
	pgoyette-compat-0625:1.1.1.2
	pgoyette-compat-0521:1.1.1.2
	pgoyette-compat-0502:1.1.1.2
	pgoyette-compat-0422:1.1.1.2
	pgoyette-compat-0415:1.1.1.2
	pgoyette-compat-0407:1.1.1.2
	pgoyette-compat-0330:1.1.1.2
	pgoyette-compat-0322:1.1.1.2
	pgoyette-compat-0315:1.1.1.2
	pgoyette-compat:1.1.1.2.0.12
	pgoyette-compat-base:1.1.1.2
	perseant-stdc-iso10646:1.1.1.2.0.130
	perseant-stdc-iso10646-base:1.1.1.2
	prg-localcount2-base3:1.1.1.2
	prg-localcount2-base2:1.1.1.2
	prg-localcount2-base1:1.1.1.2
	prg-localcount2:1.1.1.2.0.128
	prg-localcount2-base:1.1.1.2
	pgoyette-localcount-20170426:1.1.1.2
	bouyer-socketcan-base1:1.1.1.2
	pgoyette-localcount-20170320:1.1.1.2
	bouyer-socketcan:1.1.1.2.0.126
	bouyer-socketcan-base:1.1.1.2
	pgoyette-localcount-20170107:1.1.1.2
	pgoyette-localcount-20161104:1.1.1.2
	localcount-20160914:1.1.1.2
	pgoyette-localcount-20160806:1.1.1.2
	pgoyette-localcount-20160726:1.1.1.2
	pgoyette-localcount:1.1.1.2.0.124
	pgoyette-localcount-base:1.1.1.2
	netbsd-5-2-3-RELEASE:1.1.1.2
	netbsd-5-1-5-RELEASE:1.1.1.2
	yamt-pagecache-base9:1.1.1.2
	yamt-pagecache-tag8:1.1.1.2
	tls-earlyentropy:1.1.1.2.0.122
	tls-earlyentropy-base:1.1.1.2
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.2
	riastradh-drm2-base3:1.1.1.2
	netbsd-5-2-2-RELEASE:1.1.1.2
	netbsd-5-1-4-RELEASE:1.1.1.2
	netbsd-5-2-1-RELEASE:1.1.1.2
	netbsd-5-1-3-RELEASE:1.1.1.2
	rmind-smpnet-nbase:1.1.1.2
	rmind-smpnet:1.1.1.2.0.118
	rmind-smpnet-base:1.1.1.2
	agc-symver:1.1.1.2.0.120
	agc-symver-base:1.1.1.2
	tls-maxphys-base:1.1.1.2
	yamt-pagecache-base8:1.1.1.2
	netbsd-5-2:1.1.1.2.0.116
	yamt-pagecache-base7:1.1.1.2
	netbsd-5-2-RELEASE:1.1.1.2
	netbsd-5-2-RC1:1.1.1.2
	yamt-pagecache-base6:1.1.1.2
	yamt-pagecache-base5:1.1.1.2
	yamt-pagecache-base4:1.1.1.2
	netbsd-5-1-2-RELEASE:1.1.1.2
	netbsd-5-1-1-RELEASE:1.1.1.2
	jmcneill-usbmp:1.1.1.2.0.114
	jmcneill-usbmp-base:1.1.1.2
	jmcneill-audiomp3:1.1.1.2.0.112
	jmcneill-audiomp3-base:1.1.1.2
	yamt-pagecache-base3:1.1.1.2
	yamt-pagecache-base2:1.1.1.2
	yamt-pagecache:1.1.1.2.0.110
	yamt-pagecache-base:1.1.1.2
	rmind-uvmplock-nbase:1.1.1.2
	jym-xensuspend-nbase:1.1.1.2
	bouyer-quota2-nbase:1.1.1.2
	bouyer-quota2:1.1.1.2.0.108
	bouyer-quota2-base:1.1.1.2
	jruoho-x86intr:1.1.1.2.0.106
	jruoho-x86intr-base:1.1.1.2
	matt-nb5-pq3:1.1.1.2.0.104
	matt-nb5-pq3-base:1.1.1.2
	netbsd-5-1:1.1.1.2.0.102
	netbsd-5-1-RELEASE:1.1.1.2
	yamt-nfs-mp-base11:1.1.1.2
	netbsd-5-1-RC4:1.1.1.2
	uebayasi-xip-base2:1.1.1.2
	yamt-nfs-mp-base10:1.1.1.2
	netbsd-5-1-RC3:1.1.1.2
	netbsd-5-1-RC2:1.1.1.2
	netbsd-5-1-RC1:1.1.1.2
	rmind-uvmplock:1.1.1.2.0.100
	rmind-uvmplock-base:1.1.1.2
	yamt-nfs-mp-base9:1.1.1.2
	uebayasi-xip:1.1.1.2.0.98
	uebayasi-xip-base:1.1.1.2
	netbsd-5-0-2-RELEASE:1.1.1.2
	yamt-nfs-mp-base8:1.1.1.2
	yamt-nfs-mp-base7:1.1.1.2
	netbsd-5-0-1-RELEASE:1.1.1.2
	jymxensuspend-base:1.1.1.2
	yamt-nfs-mp-base6:1.1.1.2
	yamt-nfs-mp-base5:1.1.1.2
	yamt-nfs-mp-base4:1.1.1.2
	yamt-nfs-mp-base3:1.1.1.2
	netbsd-5-0:1.1.1.2.0.96
	netbsd-5-0-RELEASE:1.1.1.2
	netbsd-5-0-RC4:1.1.1.2
	netbsd-5-0-RC3:1.1.1.2
	netbsd-5-0-RC2:1.1.1.2
	jym-xensuspend:1.1.1.2.0.94
	jym-xensuspend-base:1.1.1.2
	netbsd-5-0-RC1:1.1.1.2
	haad-dm-base2:1.1.1.2
	haad-nbase2:1.1.1.2
	ad-audiomp2:1.1.1.2.0.92
	ad-audiomp2-base:1.1.1.2
	netbsd-5:1.1.1.2.0.90
	netbsd-5-base:1.1.1.2
	haad-dm-base1:1.1.1.2
	haad-dm:1.1.1.2.0.88
	haad-dm-base:1.1.1.2
	simonb-wapbl-nbase:1.1.1.2
	yamt-pf42-base4:1.1.1.2
	simonb-wapbl:1.1.1.2.0.86
	simonb-wapbl-base:1.1.1.2
	yamt-pf42-base3:1.1.1.2
	hpcarm-cleanup-nbase:1.1.1.2
	yamt-pf42-base2:1.1.1.2
	yamt-nfs-mp-base2:1.1.1.2
	yamt-nfs-mp:1.1.1.2.0.84
	yamt-nfs-mp-base:1.1.1.2
	yamt-pf42:1.1.1.2.0.82
	yamt-pf42-base:1.1.1.2
	ad-socklock-base1:1.1.1.2
	yamt-lazymbuf-base15:1.1.1.2
	yamt-lazymbuf-base14:1.1.1.2
	keiichi-mipv6-nbase:1.1.1.2
	mjf-devfs2:1.1.1.2.0.80
	mjf-devfs2-base:1.1.1.2
	keiichi-mipv6:1.1.1.2.0.78
	keiichi-mipv6-base:1.1.1.2
	bouyer-xeni386-merge1:1.1.1.2
	vmlocking2-base3:1.1.1.2
	bouyer-xeni386-nbase:1.1.1.2
	yamt-kmem-base3:1.1.1.2
	cube-autoconf:1.1.1.2.0.76
	cube-autoconf-base:1.1.1.2
	yamt-kmem-base2:1.1.1.2
	bouyer-xeni386:1.1.1.2.0.74
	bouyer-xeni386-base:1.1.1.2
	yamt-kmem:1.1.1.2.0.72
	yamt-kmem-base:1.1.1.2
	vmlocking2-base2:1.1.1.2
	reinoud-bufcleanup-nbase:1.1.1.2
	vmlocking2:1.1.1.2.0.70
	vmlocking2-base1:1.1.1.2
	jmcneill-base:1.1.1.2
	mjf-devfs:1.1.1.2.0.68
	mjf-devfs-base:1.1.1.2
	bouyer-xenamd64-base2:1.1.1.2
	vmlocking-nbase:1.1.1.2
	yamt-x86pmap-base4:1.1.1.2
	bouyer-xenamd64:1.1.1.2.0.66
	bouyer-xenamd64-base:1.1.1.2
	yamt-x86pmap-base3:1.1.1.2
	yamt-x86pmap-base2:1.1.1.2
	yamt-x86pmap:1.1.1.2.0.64
	yamt-x86pmap-base:1.1.1.2
	jmcneill-pm:1.1.1.2.0.62
	jmcneill-pm-base:1.1.1.2
	hpcarm-cleanup:1.1.1.2.0.60
	hpcarm-cleanup-base:1.1.1.2
	mjf-ufs-trans-base:1.1.1.2
	yamt-idlelwp-base8:1.1.1.2
	ppcoea-renovation:1.1.1.2.0.58
	ppcoea-renovation-base:1.1.1.2
	reinoud-bufcleanup-base:1.1.1.2
	vmlocking:1.1.1.2.0.56
	vmlocking-base:1.1.1.2
	ad-audiomp:1.1.1.2.0.54
	ad-audiomp-base:1.1.1.2
	yamt-idlelwp:1.1.1.2.0.52
	post-newlock2-merge:1.1.1.2
	newlock2-nbase:1.1.1.2
	yamt-splraiseipl-base5:1.1.1.2
	yamt-splraiseipl-base4:1.1.1.2
	yamt-splraiseipl-base3:1.1.1.2
	yamt-splraiseipl-base2:1.1.1.2
	yamt-splraiseipl:1.1.1.2.0.50
	yamt-splraiseipl-base:1.1.1.2
	newlock2:1.1.1.2.0.48
	newlock2-base:1.1.1.2
	yamt-pdpolicy-base8:1.1.1.2
	yamt-pdpolicy-base7:1.1.1.2
	yamt-pdpolicy-base6:1.1.1.2
	gdamore-uart:1.1.1.2.0.46
	gdamore-uart-base:1.1.1.2
	simonb-timcounters-final:1.1.1.2
	yamt-pdpolicy-base5:1.1.1.2
	elad-kernelauth-nbase:1.1.1.2
	yamt-pdpolicy-base4:1.1.1.2
	yamt-pdpolicy-base3:1.1.1.2
	yamt-pdpolicy-base2:1.1.1.2
	yamt-pdpolicy:1.1.1.2.0.44
	yamt-pdpolicy-base:1.1.1.2
	yamt-uio_vmspace-base5:1.1.1.2
	simonb-timecounters:1.1.1.2.0.42
	simonb-timecounters-base:1.1.1.2
	rpaulo-netinet-merge-pcb:1.1.1.2.0.40
	rpaulo-netinet-merge-pcb-base:1.1.1.2
	yamt-uio_vmspace:1.1.1.2.0.38
	yamt-readahead-base3:1.1.1.2
	yamt-readahead-base2:1.1.1.2
	yamt-readahead:1.1.1.2.0.36
	yamt-readahead-base:1.1.1.2
	yamt-vop-base3:1.1.1.2
	yamt-vop-base2:1.1.1.2
	thorpej-vnode-attr:1.1.1.2.0.34
	thorpej-vnode-attr-base:1.1.1.2
	yamt-vop:1.1.1.2.0.32
	yamt-vop-base:1.1.1.2
	yamt-lazymbuf:1.1.1.2.0.30
	yamt-km-base4:1.1.1.2
	yamt-km-base3:1.1.1.2
	yamt-km-base2:1.1.1.2
	yamt-km:1.1.1.2.0.28
	yamt-km-base:1.1.1.2
	kent-audio2:1.1.1.2.0.26
	kent-audio2-base:1.1.1.2
	ktrace-lwp:1.1.1.2.0.24
	ktrace-lwp-base:1.1.1.2
	nathanw_sa_before_merge:1.1.1.2
	gmcgarry_ctxsw:1.1.1.2.0.22
	gmcgarry_ctxsw_base:1.1.1.2
	gmcgarry_ucred:1.1.1.2.0.20
	gmcgarry_ucred_base:1.1.1.2
	nathanw_sa_base:1.1.1.2
	gehenna-devsw:1.1.1.2.0.18
	gehenna-devsw-base:1.1.1.2
	eeh-devprop:1.1.1.2.0.16
	eeh-devprop-base:1.1.1.2
	newlock:1.1.1.2.0.14
	newlock-base:1.1.1.2
	ifpoll-base:1.1.1.2
	thorpej-mips-cache:1.1.1.2.0.10
	thorpej-mips-cache-base:1.1.1.2
	thorpej-devvp:1.1.1.2.0.8
	thorpej-devvp-base:1.1.1.2
	kqueue:1.1.1.2.0.6
	kqueue-base:1.1.1.2
	thorpej_scsipi_beforemerge:1.1.1.2
	thorpej_scsipi_nbase:1.1.1.2
	chs-ubc2-newbase:1.1.1.2
	fvdl-softdep-base:1.1.1.2
	thorpej_scsipi:1.1.1.2.0.4
	thorpej_scsipi_base:1.1.1.2
	thorpej-signal:1.1.1.2.0.2
	thorpej-signal-base:1.1.1.2
	marc-pcmcia-base:1.1.1.2
	pre-bsd44:1.1.1.1
	pmax-initial-import:1.1.1.1
	pmax-base:1.1.1;
locks; strict;
comment	@# @;


1.1
date	93.10.12.03.22.47;	author deraadt;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	93.10.12.03.22.48;	author deraadt;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	95.03.01.00.00.00;	author mycroft;	state dead;
branches;
next	;


desc
@@



1.1
log
@Initial revision
@
text
@#!/bin/sh -
#
# Copyright (c) 1992 The Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
#    must display the following acknowledgement:
#	This product includes software developed by the University of
#	California, Berkeley and its contributors.
# 4. 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 BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# from:	@@(#)get1	7.1 (Berkeley) 4/20/92
# $Id: $
#

# Shell script to build a mini-root file system in preparation for building
# a distribution tape.  The file system created here is image copied onto
# tape, then image copied onto disk as the "first" step in a cold boot o
# 4.3 systems.

DISTROOT=/usr/obj
DISTUSR=/usr/obj/usr.bin
DISTSRC=/bsd3/src

if [ `pwd` = '/' ]
then
	echo You just '(almost)' destroyed the root
	exit
fi
#cp /tmp/stripped_vmunix vmunix

# create necessary directories
DIRLIST="bin dev etc a tmp stand sbin usr sys"
rm -rf $DIRLIST
mkdir $DIRLIST

ETC="disktab"
for i in $ETC; do
	cp $DISTSRC/etc/etc.pmax/$i etc/$i
done

# disklabel
SBIN="fsck ifconfig init mknod mount newfs restore \
	rrestore umount"
for i in $SBIN; do
	cp $DISTROOT/sbin/$i/$i sbin/$i
done

# ed
BIN="test cat cp dd echo expr ls mkdir mv rcp rm sh stty sync"
UBIN="awk make mt"
for i in $BIN; do
	cp $DISTROOT/bin/$i/$i bin/$i
done
#for i in $UBIN; do
#	cp $DISTUSR/$i/$i bin/$i
#done
ln bin/stty bin/STTY
ln bin/test bin/[

#cp /nbsd/sys/floppy/[Ma-z0-9]* sys/floppy
#cp /nbsd/sys/consolerl/[Ma-z0-9]* sys/consolerl
#cp -r /nbsd/sys/cassette/[Ma-z0-9]* sys/cassette
#cp /nbsd/sys/cassette/[Ma-z0-9]* sys/cassette
#cp $DISTROOT/boot boot
#cp $DISTROOT/pcs750.bin pcs750.bin
cp $DISTROOT/.profile .profile

cat >etc/passwd <<EOF
root::0:10::/:/bin/sh
daemon:*:1:1::/:
EOF

cat >etc/group <<EOF
system:*:0:
daemon:*:1:
uucp:*:2:
kmem:*:3:
bin:*:4:
news:*:8:
staff:*:10:
operator:*:28:
EOF

cat >etc/fstab <<EOF
/dev/rz0a	/	ufs	rw	1 1
/dev/rz0g	/usr	ufs	rw	1 2
EOF

#cat >xtr <<'EOF'
#: ${disk?'Usage: disk=xx0 type=tt tape=yy xtr'}
#: ${type?'Usage: disk=xx0 type=tt tape=yy xtr'}
#: ${tape?'Usage: disk=xx0 type=tt tape=yy xtr'}
#echo 'Build root file system'
#newfs ${disk}a ${type}
#sync
#echo 'Check the file system'
#fsck /dev/r${disk}a
#mount /dev/${disk}a /a
#cd /a
#echo 'Rewind tape'
#mt -f /dev/${tape}0 rew
#echo 'Restore the dump image of the root'
#restore rsf 3 /dev/${tape}0
#cd /
#sync
#umount /dev/${disk}a
#sync
#fsck /dev/r${disk}a
#echo 'Root filesystem extracted'
#echo
#echo 'If this is an 8650 or 8600, update the console rl02'
#echo 'If this is a 780 or 785, update the floppy'
#echo 'If this is a 730, update the cassette'
#EOF
#chmod +x xtr

cp $DISTSRC/etc/etc.pmax/MAKEDEV dev
chmod +x dev/MAKEDEV
cp /dev/null dev/MAKEDEV.local
cd dev
./MAKEDEV std dc0 rz0 tz0 pm0 pty0
cd ..
sync
@


1.1.1.1
log
@pmax code from <ralphc@@pyramid.com> & <rick@@snowhite.cis.uoguelph.ca>
@
text
@@


1.1.1.2
log
@Clean up deleted files.
@
text
@d35 1
a35 1
# $Id: get1,v 1.1.1.1 1993/10/12 03:22:48 deraadt Exp mycroft $
@
