diff options
| author | Michael Brown | 2025-11-13 14:17:25 +0100 |
|---|---|---|
| committer | Michael Brown | 2025-11-13 14:17:25 +0100 |
| commit | 925af2b4d72edd989a12fee46511faa10393bb11 (patch) | |
| tree | 3aed243166df0822a28db1bb8f38f124a1b79fd9 /src/interface | |
| parent | [efi] Add image security database GUID definition (diff) | |
| download | ipxe-925af2b4d72edd989a12fee46511faa10393bb11.tar.gz ipxe-925af2b4d72edd989a12fee46511faa10393bb11.tar.xz ipxe-925af2b4d72edd989a12fee46511faa10393bb11.zip | |
[efi] Allow SAN-booted images to be traced via DEBUG=efi_wrap
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface')
| -rw-r--r-- | src/interface/efi/efi_block.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/interface/efi/efi_block.c b/src/interface/efi/efi_block.c index cc93edb85..10952ef8a 100644 --- a/src/interface/efi/efi_block.c +++ b/src/interface/efi/efi_block.c @@ -59,6 +59,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #include <ipxe/efi/efi_snp.h> #include <ipxe/efi/efi_path.h> #include <ipxe/efi/efi_null.h> +#include <ipxe/efi/efi_wrap.h> #include <ipxe/efi/efi_block.h> /** ACPI table protocol protocol */ @@ -861,12 +862,18 @@ static int efi_block_exec ( unsigned int drive, } } + /* Wrap calls made by the loaded image (for debugging) */ + efi_wrap_image ( image ); + /* Start image */ efirc = bs->StartImage ( image, NULL, NULL ); rc = ( efirc ? -EEFI ( efirc ) : 0 ); DBGC ( drive, "EFIBLK %#02x boot image returned: %s\n", drive, strerror ( rc ) ); + /* Remove wrapper */ + efi_unwrap(); + err_load_security_violation: bs->UnloadImage ( image ); err_load: |
