summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi
diff options
context:
space:
mode:
authormanu <manu@FreeBSD.org>2016-06-09 02:02:50 +0000
committermanu <manu@FreeBSD.org>2016-06-09 02:02:50 +0000
commit5a0157b1f9c04a1cdb9c4e1925332c177fc6ea02 (patch)
tree322f0ca37d1bb7b63ea54ea7ac0a758db93280ea /sys/boot/efi
parent29529f7688e976f12af2060ed7c1eb0d176bf1fd (diff)
downloadFreeBSD-src-5a0157b1f9c04a1cdb9c4e1925332c177fc6ea02.zip
FreeBSD-src-5a0157b1f9c04a1cdb9c4e1925332c177fc6ea02.tar.gz
Print a message when the efi disk isn't a logical partition.
Approved by: andrew (mentor) Differential Revision: https://reviews.freebsd.org/D6782
Diffstat (limited to 'sys/boot/efi')
-rw-r--r--sys/boot/efi/libefi/efipart.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/boot/efi/libefi/efipart.c b/sys/boot/efi/libefi/efipart.c
index 7e53643..87e38de 100644
--- a/sys/boot/efi/libefi/efipart.c
+++ b/sys/boot/efi/libefi/efipart.c
@@ -119,8 +119,11 @@ efipart_init(void)
(void**)&blkio);
if (EFI_ERROR(status))
continue;
- if (!blkio->Media->LogicalPartition)
+ if (!blkio->Media->LogicalPartition) {
+ printf("%s%d isn't a logical partition, skipping\n",
+ efipart_dev.dv_name, n);
continue;
+ }
/*
* If we come across a logical partition of subtype CDROM
OpenPOWER on IntegriCloud