mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
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:
parent
6aa1b4332f
commit
e02bee0b3e
|
@ -1052,7 +1052,7 @@ report_esp_device(bool do_dp, bool do_unix)
|
||||||
abspath[strlen(abspath) - strlen(relpath) - 1] = '\0';
|
abspath[strlen(abspath) - strlen(relpath) - 1] = '\0';
|
||||||
printf("%s\n", abspath);
|
printf("%s\n", abspath);
|
||||||
} else {
|
} else {
|
||||||
printf("%s\n", dev);
|
printf("/dev/%s\n", dev);
|
||||||
}
|
}
|
||||||
free(dev);
|
free(dev);
|
||||||
free(relpath);
|
free(relpath);
|
||||||
|
|
Loading…
Reference in a new issue