don't forget to skip to 3rd file on tape
[unix-history] / usr / src / sys / vax / dist / maketape
CommitLineData
a93e539e
SL
1#! /bin/sh
2# @(#)maketape 4.6 %G%
c626e3e3 3#
157748eb
SL
4miniroot=hp1a
5#
c626e3e3 6trap "rm -f /tmp/tape.$$; exit" 0 1 2 3 13 15
a93e539e 7rewind
c626e3e3 8date
157748eb
SL
9umount /dev/hp2g /dev/hp2h
10umount /dev/hp2a
11mount -r /dev/hp2a /nbsd
12mount -r /dev/hp2g /nbsd/usr
13mount -r /dev/hp2h /nbsd/a
14cd /nbsd/tp
15tp cmf /tmp/tape.$$ boot copy format
16cd /nbsd/sys/mdec
df9c18aa 17echo "Build 1st level boot block file"
c626e3e3 18cat tsboot htboot tmboot mtboot noboot noboot noboot /tmp/tape.$$ | \
a93e539e 19 dd of=/dev/rmt12 bs=512 conv=sync
157748eb 20cd /nbsd
c626e3e3 21sync
df9c18aa 22echo "Add dump of mini-root file system"
a93e539e 23dd if=/dev/r${miniroot} of=/dev/rmt12 bs=20b count=205 conv=sync
df9c18aa 24echo "Add full dump of real file system"
a93e539e 25/etc/dump 0uf /dev/rmt12 /nbsd
df9c18aa 26echo "Add tar image of system sources"
a93e539e 27cd /nbsd/a/sys; tar cf /dev/rmt12 .
157748eb 28echo "Add tar image of /usr"
a93e539e
SL
29cd /nbsd/usr; tar c adm bill bin dict doc games \
30 hosts include ingres lib local man mdec msgs net new \
31 preserve pub spool tmp ucb
df9c18aa 32echo "Done, rewind"