summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2015-11-03 16:03:05 +0000
committerYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2015-11-03 16:03:05 +0000
commit4be01963b985842d8068762f0e3f1a0271b64f2a (patch)
treefa5878c7578063e0475f1c1ce6a23de2edfed02e /sys/arch
parent47f0a8bc9f134284b095444b589b1c0cbafd1503 (diff)
Ignore disks whose media is not present.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amd64/stand/efiboot/efiboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/stand/efiboot/efiboot.c b/sys/arch/amd64/stand/efiboot/efiboot.c
index 373a0eecc13..72479e283b2 100644
--- a/sys/arch/amd64/stand/efiboot/efiboot.c
+++ b/sys/arch/amd64/stand/efiboot/efiboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: efiboot.c,v 1.7 2015/11/03 10:56:38 yasuoka Exp $ */
+/* $OpenBSD: efiboot.c,v 1.8 2015/11/03 16:03:04 yasuoka Exp $ */
/*
* Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net>
@@ -178,7 +178,7 @@ efi_diskprobe(void)
panic("BS->HandleProtocol() returns %d", status);
media = blkio->Media;
- if (media->LogicalPartition)
+ if (media->LogicalPartition || !media->MediaPresent)
continue;
di = alloc(sizeof(struct diskinfo));
efid_init(di, blkio);