diff options
author | manu <manu@FreeBSD.org> | 2016-06-09 02:02:50 +0000 |
---|---|---|
committer | manu <manu@FreeBSD.org> | 2016-06-09 02:02:50 +0000 |
commit | 5a0157b1f9c04a1cdb9c4e1925332c177fc6ea02 (patch) | |
tree | 322f0ca37d1bb7b63ea54ea7ac0a758db93280ea | |
parent | 29529f7688e976f12af2060ed7c1eb0d176bf1fd (diff) | |
download | FreeBSD-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
-rw-r--r-- | sys/boot/efi/libefi/efipart.c | 5 |
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 |