diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-09-04 22:36:24 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-09-04 22:36:24 +0000 |
commit | 2675137d9d32f9cf9c9fc42578f38ed22d59186e (patch) | |
tree | e1702832606dddbaaa88614d0a8f1c204521ab32 /sys | |
parent | 81429d662990b930ce5fc2386cfecf2b4824fc35 (diff) |
warn about unknown disklabel types, doc it in BUGS
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/stand/installboot/installboot.8 | 4 | ||||
-rw-r--r-- | sys/arch/i386/stand/installboot/installboot.c | 6 |
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); |