From e02bee0b3e30aae85efc882ddae19ae508c3866b Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 18 Dec 2023 10:06:27 -0700 Subject: [PATCH] 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 65ab247fb27..4a6a7fdfec3 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);