git: e02bee0b3e30 - main - efibootmgr: Report the path to the device

From: Warner Losh <imp_at_FreeBSD.org>
Date: Mon, 18 Dec 2023 17:10:37 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=e02bee0b3e30aae85efc882ddae19ae508c3866b

commit e02bee0b3e30aae85efc882ddae19ae508c3866b
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-12-18 17:06:27 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-12-18 17:09:13 +0000

    efibootmgr: Report the path to the device
    
    Report the entire path to the device, rather than the the bit after /dev/
    for the --esp command. Nothing in the tree depends on the output
    format: Only bsdinstall's bootconfig script calls efibootmgr, and it
    doesn't use the --esp/-E flag.
    
    Sponsored by:           Netflix
---
 usr.sbin/efibootmgr/efibootmgr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/efibootmgr/efibootmgr.c b/usr.sbin/efibootmgr/efibootmgr.c
index 65ab247fb271..4a6a7fdfec39 100644
--- a/usr.sbin/efibootmgr/efibootmgr.c
+++ b/usr.sbin/efibootmgr/efibootmgr.c
@@ -1052,7 +1052,7 @@ report_esp_device(bool do_dp, bool do_unix)
 		abspath[strlen(abspath) - strlen(relpath) - 1] = '\0';
 		printf("%s\n", abspath);
 	} else {
-		printf("%s\n", dev);
+		printf("/dev/%s\n", dev);
 	}
 	free(dev);
 	free(relpath);