From 540bb26ac5e59ef491f2428a6095a5062068e263 Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Thu, 17 Nov 1994 14:18:43 +0000 Subject: [PATCH] Rethink the cpio floppy verify a little. Don't use a magic cookie, check for bininst instead (see comments in release/Makefile). --- sbin/sysinstall/stage4.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/sysinstall/stage4.c b/sbin/sysinstall/stage4.c index dc374c81a0f..dce7ccf2c7a 100644 --- a/sbin/sysinstall/stage4.c +++ b/sbin/sysinstall/stage4.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: stage4.c,v 1.5 1994/11/02 07:15:55 jkh Exp $ + * $Id: stage4.c,v 1.6 1994/11/17 14:12:37 jkh Exp $ * */ @@ -76,11 +76,11 @@ stage4() Fatal("Pid %d, status %d, cpio=%d, gunzip=%d.\nerror:%s", i, j, cpid, zpid, strerror(errno)); - if (access("/stand/cpio_floppy_done", R_OK) == -1) + /* bininst MUST be the last file on the floppy */ + if (access("/stand/bininst", R_OK) == -1) Fatal("CPIO floppy was bad! Please check media for defects."); else { TellEm("unlink /stand/need_cpio_floppy"); unlink("/stand/need_cpio_floppy"); - unlink("/stand/cpio_floppy_done"); } }