From 5ed04603c2262d373efb0ceec3a059cef7feec65 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 9 May 1997 19:06:11 +0000 Subject: Need a flush after newfs (seems to fix last file corruption problems) Add check for corrupted files. --- distrib/alpha/ramdisk/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'distrib/alpha') diff --git a/distrib/alpha/ramdisk/Makefile b/distrib/alpha/ramdisk/Makefile index 24840156498..f30a7d6a70b 100644 --- a/distrib/alpha/ramdisk/Makefile +++ b/distrib/alpha/ramdisk/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.5 1997/05/08 16:30:45 millert Exp $ +# $OpenBSD: Makefile,v 1.6 1997/05/09 19:06:10 millert Exp $ TOP= ${.CURDIR}/.. @@ -47,6 +47,7 @@ ${FLOPPY}: bsd.gz disklabel -w -r ${VND} ${FLOPPYTYPE} newfs ${NEWFSARGS} ${NEWFSARGS_FD} -s ${FLOPPYBLKS} ${VND_RDEV} \ ${FLOPPYTYPE} + cat /*bin/* > /dev/null mount ${VND_DEV} ${MOUNT_POINT} cp ${BOOT} ${MOUNT_POINT} cp bsd.gz ${MOUNT_POINT}/bsd @@ -56,6 +57,8 @@ ${FLOPPY}: bsd.gz @df -i ${MOUNT_POINT} @echo "" cat /*bin/* > /dev/null + @cmp ${BOOT} ${MOUNT_POINT}/boot || echo "Warning! /boot corrupted!!!" + @cmp bsd.gz ${MOUNT_POINT}/bsd || echo "Warning! /bsd corrupted!!!" umount ${MOUNT_POINT} vnconfig -u ${VND} # some bug can put an extra 8k at the end it seems -- cgit v1.2.3