Commit | Line | Data |
---|---|---|
adf5bd82 | 1 | # @(#)maketape 4.3 %G% |
c626e3e3 | 2 | # |
df9c18aa | 3 | machine=arpa |
c626e3e3 | 4 | trap "rm -f /tmp/tape.$$; exit" 0 1 2 3 13 15 |
df9c18aa | 5 | ${machine} rewind |
c626e3e3 SL |
6 | date |
7 | cd /tp | |
df9c18aa | 8 | tp cmf /tmp/tape.$$ boot copy upchk hpchk updrtest hpdrtest |
c626e3e3 | 9 | cd /usr/mdec |
df9c18aa | 10 | echo "Build 1st level boot block file" |
c626e3e3 | 11 | cat tsboot htboot tmboot mtboot noboot noboot noboot /tmp/tape.$$ | \ |
df9c18aa | 12 | ${machine} dd of=/dev/rmt12 bs=512 conv=sync |
c626e3e3 SL |
13 | cd / |
14 | sync | |
df9c18aa SL |
15 | echo "Add dump of mini-root file system" |
16 | dd if=/dev/rhk0a bs=8k count=130 | \ | |
17 | ${machine} dd of=/dev/rmt12 ibs=20b obs=20b | |
18 | echo "Add full dump of real file system" | |
19 | /etc/rdump 0uf ${machine}:/dev/rmt12 / | |
20 | echo "Add tar image of system sources" | |
21 | cd /sys; tar cf - . | ${machine} dd of=/dev/rmt12 ibs=20b obs=20b | |
22 | echo "Done, rewind" | |
23 | ${machine} rewind |