diff options
| author | jmcneill <jmcneill@NetBSD.org> | 2020-06-27 18:52:24 +0000 |
|---|---|---|
| committer | jmcneill <jmcneill@NetBSD.org> | 2020-06-27 18:52:24 +0000 |
| commit | 34c35f47178c2d48036656ea44705209a153cccf (patch) | |
| tree | f29b70554a90659efbab3a4ae013c86ecbce7250 /sys | |
| parent | cb5f1bf480dfa5a1c556c1161ea7faaf8cfbba4c (diff) | |
command_version: print config file path
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/stand/efiboot/boot.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/stand/efiboot/boot.c b/sys/stand/efiboot/boot.c index 6bd55e1dea0..07c23c984de 100644 --- a/sys/stand/efiboot/boot.c +++ b/sys/stand/efiboot/boot.c @@ -1,4 +1,4 @@ -/* $NetBSD: boot.c,v 1.25 2020/06/27 17:23:08 jmcneill Exp $ */ +/* $NetBSD: boot.c,v 1.26 2020/06/27 18:52:24 jmcneill Exp $ */ /*- * Copyright (c) 2016 Kimihiro Nonaka <nonaka@netbsd.org> @@ -360,6 +360,7 @@ command_resetenv(char *arg) void command_version(char *arg) { + char pathbuf[80]; char *ufirmware; int rv; @@ -373,6 +374,10 @@ command_version(char *arg) ST->FirmwareRevision); FreePool(ufirmware); } + if (efi_bootdp != NULL && + efi_file_path(efi_bootdp, BOOTCFG_FILENAME, pathbuf, sizeof(pathbuf)) == 0) { + printf("Config path: %s\n", pathbuf); + } efi_fdt_show(); efi_acpi_show(); |
