Commit | Line | Data |
---|---|---|
a93e539e SL |
1 | #! /bin/sh |
2 | # @(#)maketape 4.6 %G% | |
c626e3e3 | 3 | # |
157748eb SL |
4 | miniroot=hp1a |
5 | # | |
c626e3e3 | 6 | trap "rm -f /tmp/tape.$$; exit" 0 1 2 3 13 15 |
a93e539e | 7 | rewind |
c626e3e3 | 8 | date |
157748eb SL |
9 | umount /dev/hp2g /dev/hp2h |
10 | umount /dev/hp2a | |
11 | mount -r /dev/hp2a /nbsd | |
12 | mount -r /dev/hp2g /nbsd/usr | |
13 | mount -r /dev/hp2h /nbsd/a | |
14 | cd /nbsd/tp | |
15 | tp cmf /tmp/tape.$$ boot copy format | |
16 | cd /nbsd/sys/mdec | |
df9c18aa | 17 | echo "Build 1st level boot block file" |
c626e3e3 | 18 | cat tsboot htboot tmboot mtboot noboot noboot noboot /tmp/tape.$$ | \ |
a93e539e | 19 | dd of=/dev/rmt12 bs=512 conv=sync |
157748eb | 20 | cd /nbsd |
c626e3e3 | 21 | sync |
df9c18aa | 22 | echo "Add dump of mini-root file system" |
a93e539e | 23 | dd if=/dev/r${miniroot} of=/dev/rmt12 bs=20b count=205 conv=sync |
df9c18aa | 24 | echo "Add full dump of real file system" |
a93e539e | 25 | /etc/dump 0uf /dev/rmt12 /nbsd |
df9c18aa | 26 | echo "Add tar image of system sources" |
a93e539e | 27 | cd /nbsd/a/sys; tar cf /dev/rmt12 . |
157748eb | 28 | echo "Add tar image of /usr" |
a93e539e SL |
29 | cd /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 | 32 | echo "Done, rewind" |