random stuff
authorSam Leffler <sam@ucbvax.Berkeley.EDU>
Mon, 14 Feb 1983 02:59:00 +0000 (18:59 -0800)
committerSam Leffler <sam@ucbvax.Berkeley.EDU>
Mon, 14 Feb 1983 02:59:00 +0000 (18:59 -0800)
SCCS-vsn: sys/vax/dist/get 4.4
SCCS-vsn: sys/vax/dist/maketape 4.5

usr/src/sys/vax/dist/get
usr/src/sys/vax/dist/maketape

index d1e8b90..ba56ac1 100644 (file)
@@ -1,53 +1,61 @@
-#! /bin/sh -x
-#      @(#)get 4.3     %G%
+#! /bin/sh
+#      @(#)get 4.4     %G%
+#
 # Shell script to build a mini-root file system
 # in preparation for building a distribution tape.
 # The file system created here is image copied onto
 # tape, then image copied onto disk as the "first"
 # step in a cold boot of 4.1b-4.2 systems.
 #
 # Shell script to build a mini-root file system
 # in preparation for building a distribution tape.
 # The file system created here is image copied onto
 # tape, then image copied onto disk as the "first"
 # step in a cold boot of 4.1b-4.2 systems.
 #
+DISTROOT=/nbsd
+#
 if [ `pwd` = '/' ]
 then
        echo You just '(almost)' destroyed the root
        exit
 fi
 if [ `pwd` = '/' ]
 then
        echo You just '(almost)' destroyed the root
        exit
 fi
-cp /sys/GENERIC/vmunix .
+cp $DISTROOT/a/sys/GENERIC/vmunix .
 rm -rf bin; mkdir bin
 rm -rf etc; mkdir etc
 rm -rf a; mkdir a
 rm -fr tmp; mkdir tmp
 rm -fr usr; mkdir usr usr/mdec
 rm -fr floppy; mkdir floppy
 rm -rf bin; mkdir bin
 rm -rf etc; mkdir etc
 rm -rf a; mkdir a
 rm -fr tmp; mkdir tmp
 rm -fr usr; mkdir usr usr/mdec
 rm -fr floppy; mkdir floppy
-cp /etc/mkfs etc; strip etc/mkfs
-cp /etc/restor etc; strip etc/restor
-cp /etc/init etc; strip etc/init
-cp /etc/mount etc; strip etc/mount
-cp /etc/mknod etc; strip etc/mknod
-cp /etc/fsck etc; strip etc/fsck
-cp /etc/umount etc; strip etc/umount
-cp /etc/arff etc; strip etc/arff
-cp /etc/flcopy etc; strip etc/flcopy
-cp /bin/mt bin; strip bin/mt
-cp /bin/ls bin; strip bin/ls
-cp /bin/sh bin; strip bin/sh
-cp /bin/mv bin; strip bin/mv
-cp /bin/sync bin; strip bin/sync
-cp /bin/cat bin; strip bin/cat
-cp /bin/mkdir bin; strip bin/mkdir
-cp /bin/stty bin; strip bin/stty; ln bin/stty bin/STTY
-cp /bin/echo bin; strip bin/echo
-cp /bin/rm bin; strip bin/rm
-cp /bin/cp bin; strip bin/cp
-cp /bin/expr bin; strip bin/expr
-cp /bin/awk bin; strip bin/awk
-cp /usr/mdec/* usr/mdec
-cp /sys/floppy/*boo* floppy
-cp /boot boot
-cp /.profile .profile
+cp $DISTROOT/etc/disktab etc
+cp $DISTROOT/etc/makefs etc; strip etc/makefs
+cp $DISTROOT/etc/mkfs etc; strip etc/mkfs
+cp $DISTROOT/etc/restor etc; strip etc/restor
+cp $DISTROOT/etc/init etc; strip etc/init
+cp $DISTROOT/etc/mount etc; strip etc/mount
+cp $DISTROOT/etc/mknod etc; strip etc/mknod
+cp $DISTROOT/etc/fsck etc; strip etc/fsck
+cp $DISTROOT/etc/umount etc; strip etc/umount
+cp $DISTROOT/etc/arff etc; strip etc/arff
+cp $DISTROOT/etc/flcopy etc; strip etc/flcopy
+cp $DISTROOT/bin/mt bin; strip bin/mt
+cp $DISTROOT/bin/ls bin; strip bin/ls
+cp $DISTROOT/bin/sh bin; strip bin/sh
+cp $DISTROOT/bin/mv bin; strip bin/mv
+cp $DISTROOT/bin/sync bin; strip bin/sync
+cp $DISTROOT/bin/cat bin; strip bin/cat
+cp $DISTROOT/bin/mkdir bin; strip bin/mkdir
+cp $DISTROOT/bin/stty bin; strip bin/stty; ln bin/stty bin/STTY
+cp $DISTROOT/bin/echo bin; strip bin/echo
+cp $DISTROOT/bin/rm bin; strip bin/rm
+cp $DISTROOT/bin/cp bin; strip bin/cp
+cp $DISTROOT/bin/expr bin; strip bin/expr
+cp $DISTROOT/bin/awk bin; strip bin/awk
+cp $DISTROOT/usr/mdec/* usr/mdec
+cp $DISTROOT/a/sys/floppy/*boo* floppy
+cp $DISTROOT/a/sys/floppy/format floppy
+cp $DISTROOT/a/sys/floppy/copy floppy
+cp $DISTROOT/a/sys/stand/boot boot
+cp $DISTROOT/.profile .profile
 cat >etc/passwd <<EOF
 root::0:10::/:/bin/sh
 EOF
 cat >etc/group <<EOF
 cat >etc/passwd <<EOF
 root::0:10::/:/bin/sh
 EOF
 cat >etc/group <<EOF
+wheel:*:0:
 staff:*:10:
 EOF
 cat >etc/fstab <<EOF
 staff:*:10:
 EOF
 cat >etc/fstab <<EOF
@@ -66,7 +74,9 @@ set -x
 sync
 /etc/fsck /dev/r${disc}0a
 /etc/mount /dev/${disc}0a /a
 sync
 /etc/fsck /dev/r${disc}0a
 /etc/mount /dev/${disc}0a /a
-/etc/restor rsf 3 /dev/${tape}0 /dev/${disc}0a
+cd /a
+/etc/restor x .
+cd /
 sync
 /etc/umount /dev/${disc}0a
 /usr/mdec/installboot /usr/mdec/${disc}boot /usr/mdec/boot${disc} /dev/${disc}0a
 sync
 /etc/umount /dev/${disc}0a
 /usr/mdec/installboot /usr/mdec/${disc}boot /usr/mdec/boot${disc} /dev/${disc}0a
@@ -79,7 +89,8 @@ echo 'If this is a 730, update the cassette'
 EOF
 chmod +x xtr
 rm -rf dev; mkdir dev
 EOF
 chmod +x xtr
 rm -rf dev; mkdir dev
-cp /sys/dist/MAKEDEV dev
+cp $DISTROOT/sys/dist/MAKEDEV dev
+chmod +x dev/MAKEDEV
 cp /dev/null dev/MAKEDEV.local
 cd dev
 ./MAKEDEV std hp0 hk0 up0 ra0 rb0
 cp /dev/null dev/MAKEDEV.local
 cd dev
 ./MAKEDEV std hp0 hk0 up0 ra0 rb0
index 72574bc..2cde44a 100644 (file)
@@ -1,25 +1,32 @@
-#      @(#)maketape    4.4     %G%
+#      @(#)maketape    4.5     %G%
 #
 machine=arpa
 #
 machine=arpa
+miniroot=hp1a
+#
 trap "rm -f /tmp/tape.$$; exit" 0 1 2 3 13 15
 ${machine} rewind
 date
 trap "rm -f /tmp/tape.$$; exit" 0 1 2 3 13 15
 ${machine} rewind
 date
-cd /tp
-tp cmf /tmp/tape.$$ boot copy
-cd /usr/mdec
+umount /dev/hp2g /dev/hp2h
+umount /dev/hp2a
+mount -r /dev/hp2a /nbsd
+mount -r /dev/hp2g /nbsd/usr
+mount -r /dev/hp2h /nbsd/a
+cd /nbsd/tp
+tp cmf /tmp/tape.$$ boot copy format
+cd /nbsd/sys/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
 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 /
+cd /nbsd
 sync
 echo "Add dump of mini-root file system"
 sync
 echo "Add dump of mini-root file system"
-dd if=/dev/rhk0a bs=8k count=130 | \
+dd if=/dev/r${miniroot} bs=8k count=130 | \
        ${machine} dd of=/dev/rmt12 ibs=20b obs=20b
 echo "Add full dump of real file system"
        ${machine} dd of=/dev/rmt12 ibs=20b obs=20b
 echo "Add full dump of real file system"
-/etc/rdump 0uf ${machine}:/dev/rmt12 /
+/etc/rdump 0uf ${machine}:/dev/rmt12 /nbsd
 echo "Add tar image of system sources"
 echo "Add tar image of system sources"
-cd /sys; tar cf - . | ${machine} dd of=/dev/rmt12 ibs=20b obs=20b
-echo "Add tar image of manuals"
-cd /a/man; tar cf - man* | ${machine} dd of=/dev/rmt12 ibs=20b obs=20b
+cd /nbsd/a/sys; tar cf - . | ${machine} dd of=/dev/rmt12 ibs=20b obs=20b
+echo "Add tar image of /usr"
+cd /nbsd/usr; tar cf - adm bill bin dict doc games hosts include ingres lib local man mdec msgs net new preserve pub spool tmp ucb | ${machine} dd of=/dev/rmt12 ibs=20b obs=20b
 echo "Done, rewind"
 ${machine} rewind
 echo "Done, rewind"
 ${machine} rewind