diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-22 01:52:53 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-22 01:52:53 +0000 |
commit | cd662cc5ca14c9185fe05b30854c26d3b5fe0525 (patch) | |
tree | 12a64134779e6d416868f188d08ef5597d42291b /distrib/vax | |
parent | d4206781ec187bb02ace80d33f852d187f302c4d (diff) |
disklabel the vnd
Diffstat (limited to 'distrib/vax')
-rw-r--r-- | distrib/vax/inst-common/Makefile.inc | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/distrib/vax/inst-common/Makefile.inc b/distrib/vax/inst-common/Makefile.inc index f78e43cf6ec..53f532209df 100644 --- a/distrib/vax/inst-common/Makefile.inc +++ b/distrib/vax/inst-common/Makefile.inc @@ -1,4 +1,4 @@ -# $Id: Makefile.inc,v 1.2 1996/09/05 21:27:36 deraadt Exp $ +# $Id: Makefile.inc,v 1.3 1996/12/22 01:52:52 deraadt Exp $ # TOP is assumed to be defined by Makefile including this one. @@ -7,8 +7,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?= miniroot-${REV}.fs BOOTSYS= bootroot-${REV}.fs MDEC= ${DESTDIR}/usr/mdec @@ -19,8 +19,9 @@ MTREE= ${COMMONDIR}/mtree.conf all: ${CBIN} bootroot dd if=/dev/zero of=${IMAGE} bs=64k count=32 - vnconfig -v -c ${VND_DEV} ${IMAGE} - newfs -O -m 0 -o space -i 8192 ${VND_RDEV} miniroot + vnconfig -v -c ${VND} ${IMAGE} + disklabel -w ${VND} miniroot + newfs -O -m 0 -o space -i 8192 ${VND_RDEV} mount ${VND_DEV} ${MOUNT_POINT} mtree -def ${MTREE} -p ${MOUNT_POINT}/ -u TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \ @@ -29,17 +30,17 @@ all: ${CBIN} bootroot @df -i ${MOUNT_POINT} @echo "" umount -f ${MOUNT_POINT} - vnconfig -u ${VND_DEV} + vnconfig -u ${VND} bootroot: edlabel copy xxboot boot dd if=/dev/zero of=${BOOTSYS} bs=64k count=4 - vnconfig -v -c ${VND_DEV} ${BOOTSYS} + vnconfig -v -c ${VND} ${BOOTSYS} newfs -O -m 0 -o space -i 8192 ${VND_RDEV} bootroot - dd if=xxboot of=/dev/rvnd0a count=16 + dd if=xxboot of=${VND_RDEV} count=16 mount ${VND_DEV} ${MOUNT_POINT} cp edlabel copy boot ${MOUNT_POINT} umount -f ${MOUNT_POINT} - vnconfig -u ${VND_DEV} + vnconfig -u ${VND} edlabel copy xxboot boot: (cd /sys/arch/vax/boot;make) @@ -50,7 +51,7 @@ edlabel copy xxboot boot: unconfig: -umount -f ${MOUNT_POINT} - -vnconfig -u ${VND_DEV} ${IMAGE} + -vnconfig -u ${VND} ${IMAGE} -/bin/rm -f ${IMAGE} ${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF} |