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
all: ${CBIN}
dd if=/dev/zero of=${IMAGE} bs=18k count=60
- vnconfig -v -c ${VND_DEV} ${IMAGE}
- newfs -O -m 0 -o space -i 3052 -c 60 ${VND_RDEV} floppybt
+ vnconfig -v -c ${VND} ${IMAGE}
+ disklabel -w ${VND} floppybt
+ newfs -O -m 0 -o space -i 3052 -c 60 ${VND_RDEV}
mount ${VND_DEV} ${MOUNT_POINT}
mtree -def ${MTREE} -p ${MOUNT_POINT}/ -u
TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
@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}
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
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} \
@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}
-# $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.
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
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} \
@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)
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}