mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
loader.efi: clean up misleading noise from missing block devices
If there are no block devices, there is no need to printout error (ENOENT). In case of netboot, our image path has no block device, no need to make noise about it.
This commit is contained in:
parent
fe585be529
commit
3768af833b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=337231
@ -545,8 +545,6 @@ find_currdev(EFI_LOADED_IMAGE *img, bool do_bootmgr, bool is_last,
|
||||
return (0);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
printf("Can't find device by handle\n");
|
||||
}
|
||||
|
||||
/*
|
||||
@ -862,9 +860,9 @@ main(int argc, CHAR16 *argv[])
|
||||
* march through the device switch probing for things.
|
||||
*/
|
||||
i = efipart_inithandles();
|
||||
if (i != 0) {
|
||||
if (i != 0 && i != ENOENT) {
|
||||
printf("efipart_inithandles failed with ERRNO %d, expect "
|
||||
"failures", i);
|
||||
"failures\n", i);
|
||||
}
|
||||
|
||||
for (i = 0; devsw[i] != NULL; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user