summaryrefslogtreecommitdiff
path: root/distrib/alpha
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-05-09 19:06:11 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-05-09 19:06:11 +0000
commit5ed04603c2262d373efb0ceec3a059cef7feec65 (patch)
tree0433ac89f48f092b7af1f07596e69f149a9b2fc5 /distrib/alpha
parentd7edb81f6805ac125ebea4dbbeabf73e0d6e3f44 (diff)
Need a flush after newfs (seems to fix last file corruption problems)
Add check for corrupted files.
Diffstat (limited to 'distrib/alpha')
-rw-r--r--distrib/alpha/ramdisk/Makefile5
1 files changed, 4 insertions, 1 deletions
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