summaryrefslogtreecommitdiff
path: root/distrib/sparc/floppies/inst-common
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-10-08 19:39:56 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-10-08 19:39:56 +0000
commit82eaf25dc36c60f12f268f4df01a04e12196dfd1 (patch)
tree0f9e7a6463e0e8d940e52f2f5ffdfde3119b73eb /distrib/sparc/floppies/inst-common
parent918a079dcbd7c72522df052a1a08f6ecd75d9a24 (diff)
build nice in nfs environment
Diffstat (limited to 'distrib/sparc/floppies/inst-common')
-rw-r--r--distrib/sparc/floppies/inst-common/Makefile.inc13
1 files changed, 9 insertions, 4 deletions
diff --git a/distrib/sparc/floppies/inst-common/Makefile.inc b/distrib/sparc/floppies/inst-common/Makefile.inc
index dcc651b9618..3fe9a4cd104 100644
--- a/distrib/sparc/floppies/inst-common/Makefile.inc
+++ b/distrib/sparc/floppies/inst-common/Makefile.inc
@@ -1,4 +1,4 @@
-# $Id: Makefile.inc,v 1.1 1995/10/27 22:39:52 deraadt Exp $
+# $Id: Makefile.inc,v 1.2 1996/10/08 19:39:52 deraadt Exp $
# TOP is assumed to be defined by Makefile including this one.
@@ -9,7 +9,9 @@ MOUNT_POINT?= /mnt
VND?= vnd0
VND_DEV= /dev/${VND}c
VND_RDEV= /dev/r${VND}c
-IMAGE?= xxx-${REV}.fs
+PID!= echo $$$$
+REALIMAGE!= echo /tmp/image.${PID}
+IMAGE?= inst${REV}.fs
MDEC= ${DESTDIR}/usr/mdec
LISTS= ${COMMONDIR}/list ${.CURDIR}/list
@@ -17,8 +19,8 @@ CRUNCHCONF= ${COMMONDIR}/${CBIN}.conf
MTREE= ${COMMONDIR}/mtree.conf
all: ${CBIN}
- dd if=/dev/zero of=${IMAGE} bs=120k count=12
- vnconfig -v -c ${VND_DEV} ${IMAGE}
+ dd if=/dev/zero of=${REALIMAGE} bs=120k count=12
+ vnconfig -v -c ${VND_DEV} ${REALIMAGE}
newfs -O -m 0 -o space -i 5120 -c 80 ${VND_RDEV} floppy
mount ${VND_DEV} ${MOUNT_POINT}
mtree -def ${MTREE} -p ${MOUNT_POINT}/ -u
@@ -27,6 +29,9 @@ all: ${CBIN}
df -i ${MOUNT_POINT}
umount ${MOUNT_POINT}
vnconfig -u ${VND_DEV}
+ cat /bin/* > /dev/null # flush buffer cache (yuck)
+ cp ${REALIMAGE} ${IMAGE}
+ rm ${REALIMAGE}
unconfig:
-umount -f ${MOUNT_POINT}