don't forget to skip to 3rd file on tape
[unix-history] / usr / src / sys / vax / dist / maketape
... / ...
CommitLineData
1#! /bin/sh
2# @(#)maketape 4.6 %G%
3#
4miniroot=hp1a
5#
6trap "rm -f /tmp/tape.$$; exit" 0 1 2 3 13 15
7rewind
8date
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
17echo "Build 1st level boot block file"
18cat tsboot htboot tmboot mtboot noboot noboot noboot /tmp/tape.$$ | \
19 dd of=/dev/rmt12 bs=512 conv=sync
20cd /nbsd
21sync
22echo "Add dump of mini-root file system"
23dd if=/dev/r${miniroot} of=/dev/rmt12 bs=20b count=205 conv=sync
24echo "Add full dump of real file system"
25/etc/dump 0uf /dev/rmt12 /nbsd
26echo "Add tar image of system sources"
27cd /nbsd/a/sys; tar cf /dev/rmt12 .
28echo "Add tar image of /usr"
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
32echo "Done, rewind"