summaryrefslogtreecommitdiff
path: root/sys/arch/sun3/stand/installboot
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-19 13:53:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-19 13:53:19 +0000
commitc7b5934b74afaa45a0e07b9b516834569d903d35 (patch)
treed13b52f29dbce17457aa3dd5abf12f5e72c6b2d2 /sys/arch/sun3/stand/installboot
parent3e13176d82e9d5729726ac59122d0cea6b55275b (diff)
from netbsd; just cleanup
Diffstat (limited to 'sys/arch/sun3/stand/installboot')
-rw-r--r--sys/arch/sun3/stand/installboot/installboot.87
-rw-r--r--sys/arch/sun3/stand/installboot/installboot.c6
2 files changed, 9 insertions, 4 deletions
diff --git a/sys/arch/sun3/stand/installboot/installboot.8 b/sys/arch/sun3/stand/installboot/installboot.8
index eab1525dd27..e5495d80c93 100644
--- a/sys/arch/sun3/stand/installboot/installboot.8
+++ b/sys/arch/sun3/stand/installboot/installboot.8
@@ -1,4 +1,4 @@
-.\" $Id: installboot.8,v 1.1 1995/10/18 08:51:57 deraadt Exp $
+.\" $Id: installboot.8,v 1.2 1995/11/19 13:53:12 deraadt Exp $
.\"
.Dd 31 May 1995
.Dt INSTALLBOOT 8
@@ -51,7 +51,8 @@ the raw device, but that is not allowed with the kernel
.Nm securelevel
variable set to a value greater than zero (the default), so
.Nm installboot
-only works in single-user mode (or insecure mode - see init.8).
+only works in single-user mode (or insecure mode - see
+.Xr init 8 ).
.Sh "SEE ALSO"
-.Xr disklabel 8
+.Xr disklabel 8 ,
.Xr init 8
diff --git a/sys/arch/sun3/stand/installboot/installboot.c b/sys/arch/sun3/stand/installboot/installboot.c
index b79070bbc2f..3592da16b1b 100644
--- a/sys/arch/sun3/stand/installboot/installboot.c
+++ b/sys/arch/sun3/stand/installboot/installboot.c
@@ -1,4 +1,4 @@
-/* $NetBSD: installboot.c,v 1.4 1995/11/07 23:01:40 gwr Exp $ */
+/* $NetBSD: installboot.c,v 1.3.2.2 1995/11/18 06:47:40 gwr Exp $ */
/*
* Copyright (c) 1994 Paul Kranenburg
@@ -292,6 +292,10 @@ int devfd;
* Open 2nd-level boot program and record the block numbers
* it occupies on the filesystem represented by `devfd'.
*/
+
+ /* Make sure the (probably new) boot file is on disk. */
+ sync(); sleep(1);
+
if ((fd = open(boot, O_RDONLY)) < 0)
err(1, "open: %s", boot);