summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-11-17 14:18:43 +0000
committerjkh <jkh@FreeBSD.org>1994-11-17 14:18:43 +0000
commit850f1f5bb637dd7f3d2de0e394c70b6b055e091f (patch)
treeb6e5e94419099b50f027b1741492d23edcd5a8a0 /sbin
parentbffbeb9aa2dc0bc4adb787e51f87a8818280cd2e (diff)
downloadFreeBSD-src-850f1f5bb637dd7f3d2de0e394c70b6b055e091f.zip
FreeBSD-src-850f1f5bb637dd7f3d2de0e394c70b6b055e091f.tar.gz
Rethink the cpio floppy verify a little. Don't use a magic cookie,
check for bininst instead (see comments in release/Makefile).
Diffstat (limited to 'sbin')
-rw-r--r--sbin/sysinstall/stage4.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/sysinstall/stage4.c b/sbin/sysinstall/stage4.c
index dc374c8..dce7ccf 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");
}
}
OpenPOWER on IntegriCloud