summaryrefslogtreecommitdiff
path: root/distrib/ramdisk/Makefile
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1997-05-15 06:57:22 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1997-05-15 06:57:22 +0000
commit2aad86fa30a7b1a4260ba07f0e81465991ee60f1 (patch)
tree7a85a271a664c7673efabf94c0d7203dab1d88ec /distrib/ramdisk/Makefile
parent6dcc10bcd6d458bc4beb640e75634bd30fcf6772 (diff)
Allow archs to specify that newfs will fail. Remove obsolete
cache flushing
Diffstat (limited to 'distrib/ramdisk/Makefile')
-rw-r--r--distrib/ramdisk/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/distrib/ramdisk/Makefile b/distrib/ramdisk/Makefile
index 64effe2aa1e..9c9d0b154cf 100644
--- a/distrib/ramdisk/Makefile
+++ b/distrib/ramdisk/Makefile
@@ -1,5 +1,5 @@
-# $OpenBSD: Makefile,v 1.2 1997/05/14 21:52:59 deraadt Exp $
-# $OpenBSD: Makefile,v 1.2 1997/05/14 21:52:59 deraadt Exp $
+# $OpenBSD: Makefile,v 1.3 1997/05/15 06:57:21 niklas Exp $
+# $OpenBSD: Makefile,v 1.3 1997/05/15 06:57:21 niklas Exp $
# $NetBSD: Makefile,v 1.2.4.3 1996/07/04 07:05:32 leo Exp $
# Revision is 2.1
@@ -22,6 +22,7 @@ REALIMAGE!= echo /tmp/image.${PID}
IMAGE?= ramdisk${REV}.fs
IMAGESIZE?= 4096
NEWFSOPTS?= -m 0 -c 64 -i 8192
+NEWFS_WILL_FAIL?=false
CRUNCHGENOPTS?=
KERNEL?= RAMDISK
UTILS?= ${.CURDIR}/../miniroot
@@ -58,7 +59,8 @@ ${IMAGE}: ${CBIN}
dd if=/dev/zero of=${REALIMAGE} count=${IMAGESIZE}
vnconfig -v -c ${VND} ${REALIMAGE}
disklabel -w -r ${VND} ${DISKTYPE}
- newfs -o space ${NEWFSOPTS} ${VND_RDEV} ${DISKTYPE}
+ newfs -o space ${NEWFSOPTS} ${VND_RDEV} ${DISKTYPE} || \
+ ${NEWFS_WILL_FAIL}
mount ${VND_DEV} ${MOUNT_POINT}
mtree -def ${MTREE} -p ${MOUNT_POINT}/ -u
REV=${REV} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} ARCHDIR=${ARCHDIR} \