70df2516e98d5a5bb57ff8ae54c139db21307a57
[unix-history] / usr / src / sys / vax / dist / maketape
# @(#)maketape 4.2 %G%
#
machine=arpa
trap "rm -f /tmp/tape.$$; exit" 0 1 2 3 13 15
${machine} rewind
date
cd /tp
tp cmf /tmp/tape.$$ boot copy upchk hpchk updrtest hpdrtest
cd /usr/mdec
echo "Build 1st level boot block file"
cat tsboot htboot tmboot mtboot noboot noboot noboot /tmp/tape.$$ | \
${machine} dd of=/dev/rmt12 bs=512 conv=sync
cd /
sync
echo "Add dump of mini-root file system"
dd if=/dev/rhk0a bs=8k count=130 | \
${machine} dd of=/dev/rmt12 ibs=20b obs=20b
echo "Add full dump of real file system"
/etc/rdump 0uf ${machine}:/dev/rmt12 /
echo "Add tar image of system sources"
cd /sys; tar cf - . | ${machine} dd of=/dev/rmt12 ibs=20b obs=20b
echo "Done, rewind"
${machine} rewind