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
This commit is contained in:
Warner Losh 2023-12-18 10:06:27 -07:00
parent 6aa1b4332f
commit e02bee0b3e

View file

@ -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);