aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stand/efi/loader/main.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/stand/efi/loader/main.c b/stand/efi/loader/main.c
index 1d91c8dd26ac..e11f8b1c3833 100644
--- a/stand/efi/loader/main.c
+++ b/stand/efi/loader/main.c
@@ -340,9 +340,20 @@ probe_md_currdev(void)
}
#endif
+/*
+ * Try the passed in partition or entire disk to see if we can find a bootable
+ * partition or zpool.
+ */
static bool
-try_as_currdev(pdinfo_t *hd, pdinfo_t *pp)
+try_as_currdev(pdinfo_t *pp, bool verbose)
{
+ if (verbose) {
+ CHAR16 *text = efi_devpath_name(pp->pd_devpath);
+ if (text != NULL) {
+ printf("Trying: %S\n", text);
+ efi_free_devpath_name(text);
+ }
+ }
#ifdef EFI_ZFS_BOOT
uint64_t guid;