summaryrefslogtreecommitdiff
path: root/include/load-options.h
diff options
context:
space:
mode:
authorEric Snowberg <eric.snowberg@oracle.com>2023-08-29 17:25:42 -0400
committerPeter Jones <pjones@redhat.com>2025-02-06 15:13:23 -0500
commit83850cd8df2db60a00b96e7757c6ff9c1d8cccec (patch)
tree378a5eba992075df43a07f7d3e152672eca69a39 /include/load-options.h
parent38dfa37ec218bda0dd6bb5c4ce9e6ecb05fda851 (diff)
downloadefi-boot-shim-83850cd8df2db60a00b96e7757c6ff9c1d8cccec.tar.gz
efi-boot-shim-83850cd8df2db60a00b96e7757c6ff9c1d8cccec.zip
Add configuration option to boot an alternative 2nd stage
Add the ability for shim to load an optional configuration file. This new file is called "options.csv". The configuration file is completely optional. If used, it is located in the same directory as the booted shim. The "options.csv" file currently allows a single entry. Other options could be added to it in the future. The first and only entry in the file is the name of the secondary boot loader shim will load. The "options.csv" file is in Unicode LE format. This allows a signed shim to directly load a UKI without the need to rename it to grub. Shim's transitive trust is maintained. If the alternative 2nd stage can not be verified, it will not boot. Signed-off-by: Eric Snowberg <eric.snowberg@oracle.com>
Diffstat (limited to 'include/load-options.h')
-rw-r--r--include/load-options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/load-options.h b/include/load-options.h
index d2bee3bb..78b1dcce 100644
--- a/include/load-options.h
+++ b/include/load-options.h
@@ -13,6 +13,7 @@ EFI_STATUS generate_path_from_image_path(EFI_LOADED_IMAGE *li,
EFI_STATUS parse_load_options(EFI_LOADED_IMAGE *li);
extern CHAR16 *second_stage;
+extern CHAR16 *optional_second_stage;
extern void *load_options;
extern UINT32 load_options_size;