mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-27 09:39:22 +00:00
loader/efi/chainloader: Do not print device path of chainloaded file
Users have no reason to see this and it can break graphical boot. Signed-off-by: Mate Kukri <mate.kukri@canonical.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
ab1e6fc044
commit
33b94f2a9b
1 file changed
-4
@@ -185,7 +185,6 @@ make_file_path (grub_efi_device_path_t *dp, const char *filename)
|
|||||||
/* Fill the file path for the directory. */
|
/* Fill the file path for the directory. */
|
||||||
d = (grub_efi_device_path_t *) ((char *) file_path
|
d = (grub_efi_device_path_t *) ((char *) file_path
|
||||||
+ ((char *) d - (char *) dp));
|
+ ((char *) d - (char *) dp));
|
||||||
grub_efi_print_device_path (d);
|
|
||||||
if (copy_file_path ((grub_efi_file_path_device_path_t *) d,
|
if (copy_file_path ((grub_efi_file_path_device_path_t *) d,
|
||||||
dir_start, dir_end - dir_start) != GRUB_ERR_NONE)
|
dir_start, dir_end - dir_start) != GRUB_ERR_NONE)
|
||||||
{
|
{
|
||||||
@@ -272,9 +271,6 @@ grub_cmd_chainloader (grub_command_t cmd __attribute__ ((unused)),
|
|||||||
file_path = make_file_path (dp, filename);
|
file_path = make_file_path (dp, filename);
|
||||||
if (file_path == NULL)
|
if (file_path == NULL)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
grub_printf ("file path: ");
|
|
||||||
grub_efi_print_device_path (file_path);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
size = grub_file_size (file);
|
size = grub_file_size (file);
|
||||||
|
|||||||
Reference in new issue
Block a user