Rethink the cpio floppy verify a little. Don't use a magic cookie,

check for bininst instead (see comments in release/Makefile).
This commit is contained in:
Jordan K. Hubbard 1994-11-17 14:18:43 +00:00
parent 1cdab3d432
commit 540bb26ac5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4557

View File

@ -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");
}
}