summaryrefslogtreecommitdiff
path: root/distrib/mac68k/inst-common/Makefile.inc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-22 01:52:53 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-22 01:52:53 +0000
commitcd662cc5ca14c9185fe05b30854c26d3b5fe0525 (patch)
tree12a64134779e6d416868f188d08ef5597d42291b /distrib/mac68k/inst-common/Makefile.inc
parentd4206781ec187bb02ace80d33f852d187f302c4d (diff)
disklabel the vnd
Diffstat (limited to 'distrib/mac68k/inst-common/Makefile.inc')
-rw-r--r--distrib/mac68k/inst-common/Makefile.inc13
1 files changed, 7 insertions, 6 deletions
diff --git a/distrib/mac68k/inst-common/Makefile.inc b/distrib/mac68k/inst-common/Makefile.inc
index c245b49f300..cf65c9084da 100644
--- a/distrib/mac68k/inst-common/Makefile.inc
+++ b/distrib/mac68k/inst-common/Makefile.inc
@@ -9,8 +9,8 @@ COMMONDIR= ${TOP}/inst-common
MOUNT_POINT?= /mnt
VND?= vnd0
-VND_DEV= /dev/${VND}c
-VND_RDEV= /dev/r${VND}c
+VND_DEV= /dev/${VND}a
+VND_RDEV= /dev/r${VND}a
IMAGE?= xxx-${REV}.fs
MDEC= ${DESTDIR}/usr/mdec
@@ -20,8 +20,9 @@ MTREE= ${COMMONDIR}/mtree.conf
all: ${CBIN}
dd if=/dev/zero of=${IMAGE} bs=1k count=1024
- vnconfig -v -c ${VND_DEV} ${IMAGE}
- newfs -m 0 -o space -i 16384 ${VND_RDEV} ram
+ vnconfig -v -c ${VND} ${IMAGE}
+ disklabel -w ${VND} ram
+ newfs -m 0 -o space -i 16384 ${VND_RDEV}
mount ${VND_DEV} ${MOUNT_POINT}
mtree -def ${MTREE} -p ${MOUNT_POINT}/ -u
TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
@@ -30,11 +31,11 @@ all: ${CBIN}
@df -i ${MOUNT_POINT}
@echo ""
umount ${MOUNT_POINT}
- vnconfig -u ${VND_DEV}
+ vnconfig -u ${VND}
unconfig:
-umount -f ${MOUNT_POINT}
- -vnconfig -u ${VND_DEV}
+ -vnconfig -u ${VND}
-/bin/rm -f ${IMAGE}
${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}