summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/i386/stand/installboot/installboot.84
-rw-r--r--sys/arch/i386/stand/installboot/installboot.c6
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/arch/i386/stand/installboot/installboot.8 b/sys/arch/i386/stand/installboot/installboot.8
index f8f1e395d16..3d2a84a9a6d 100644
--- a/sys/arch/i386/stand/installboot/installboot.8
+++ b/sys/arch/i386/stand/installboot/installboot.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: installboot.8,v 1.3 1997/08/29 22:13:54 mickey Exp $
+.\" $OpenBSD: installboot.8,v 1.4 1997/09/04 22:36:23 mickey Exp $
.\"
.\"
.\" Copyright (c) 1997 Michael Shalayeff
@@ -88,6 +88,8 @@ of the block device on which the file system containing
is mounted.
.El
.Sh BUGS
+You have disklabel type to be set to some value different from 'unknown'.
+.Pp
You cannot run
.Nm installboot
for drives/partitions others then the one you have loaded /bsd from.
diff --git a/sys/arch/i386/stand/installboot/installboot.c b/sys/arch/i386/stand/installboot/installboot.c
index 17bfadbd413..4c5cd0eacac 100644
--- a/sys/arch/i386/stand/installboot/installboot.c
+++ b/sys/arch/i386/stand/installboot/installboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: installboot.c,v 1.9 1997/09/02 19:13:18 mickey Exp $ */
+/* $OpenBSD: installboot.c,v 1.10 1997/09/04 22:36:23 mickey Exp $ */
/* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */
/*
@@ -181,6 +181,10 @@ main(argc, argv)
if (dl.d_magic != DISKMAGIC)
err(1, "bad disklabel magic=%0x8x", dl.d_magic);
+ /* warn on unknown disklabel types */
+ if (dl.d_type == 0)
+ warnx("disklabel type unknown");
+
/* Load proto blocks into core */
if ((protostore = loadprotoblocks(proto, &protosize)) == NULL)
exit(1);