summaryrefslogtreecommitdiff
path: root/include/netboot.h
diff options
context:
space:
mode:
authorJan Setje-Eilers <jan.setjeeilers@oracle.com>2024-07-12 17:07:45 -0700
committerPeter Jones <pjones@redhat.com>2025-02-18 10:21:19 -0500
commit2b49dc13aed3723c7c841c2788217ff7b0e821df (patch)
treee064ba50dd2994343a835767e5038cdab6d51474 /include/netboot.h
parentc57af36e673b34a9b24309f76f105371316c45be (diff)
downloadefi-boot-shim-2b49dc13aed3723c7c841c2788217ff7b0e821df.tar.gz
efi-boot-shim-2b49dc13aed3723c7c841c2788217ff7b0e821df.zip
Suppress file open failures for some netboot cases
Reading files during a netboot comes with the caveat that fetching files from a network does not support anything like listing a directory. In the past this has meant that we do not try to open optional files during a netboot. However at least the revocation.efi file is now tested during a netboot, which will print an error when it is not found. Since that error is spurious we should allow for those errors to be suppressed. This is also desirable since we will likely go looking for additional files in the near future. Signed-off-by: Jan Setje-Eilers <Jan.SetjeEilers@oracle.com>
Diffstat (limited to 'include/netboot.h')
-rw-r--r--include/netboot.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/netboot.h b/include/netboot.h
index a7bf6cd8..296f10f0 100644
--- a/include/netboot.h
+++ b/include/netboot.h
@@ -3,10 +3,13 @@
#ifndef SHIM_NETBOOT_H
#define SHIM_NETBOOT_H
+#define SUPPRESS_NETBOOT_OPEN_FAILURE_NOISE 1
+
extern BOOLEAN findNetboot(EFI_HANDLE image_handle);
extern EFI_STATUS parseNetbootinfo(EFI_HANDLE image_handle, CHAR8 *name);
-extern EFI_STATUS FetchNetbootimage(EFI_HANDLE image_handle, VOID **buffer, UINT64 *bufsiz);
+extern EFI_STATUS FetchNetbootimage(EFI_HANDLE image_handle, VOID **buffer,
+ UINT64 *bufsiz, int flags);
#endif /* SHIM_NETBOOT_H */