summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2006-10-12 12:14:18 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2006-10-12 12:14:18 +0000
commit9f8580cbda229e758d23a09a700ee1c369cecfc5 (patch)
treedb28025f3bfad62a75aff3fb73c62fda39c68837 /sys/arch/amd64
parent1f4bf3fa4edee3198c88dc49abdbd630066c1f41 (diff)
Don't try to boot from a NetBSD MBR partition when no OpenBSD MBR
partition is found. Change error message to 'no OpenBSD partition'.
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/stand/libsa/biosdev.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/arch/amd64/stand/libsa/biosdev.c b/sys/arch/amd64/stand/libsa/biosdev.c
index 3265a5ff2f5..29516e4c77b 100644
--- a/sys/arch/amd64/stand/libsa/biosdev.c
+++ b/sys/arch/amd64/stand/libsa/biosdev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: biosdev.c,v 1.2 2004/08/21 18:53:38 tom Exp $ */
+/* $OpenBSD: biosdev.c,v 1.3 2006/10/12 12:14:17 krw Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff
@@ -362,15 +362,8 @@ bios_getdisklabel(bios_diskinfo_t *bd, struct disklabel *label)
for (off = 0, i = 0; off == 0 && i < NDOSPART; i++)
if (mbr.dmbr_parts[i].dp_typ == DOSPTYP_OPENBSD)
off = mbr.dmbr_parts[i].dp_start + LABELSECTOR;
-
- /* just in case */
- if (off == 0)
- for (off = 0, i = 0; off == 0 && i < NDOSPART; i++)
- if (mbr.dmbr_parts[i].dp_typ == DOSPTYP_NETBSD)
- off = mbr.dmbr_parts[i].dp_start + LABELSECTOR;
-
if (off == 0)
- return("no BSD partition\n");
+ return("no OpenBSD partition\n");
} else
off = LABELSECTOR;