From 83850cd8df2db60a00b96e7757c6ff9c1d8cccec Mon Sep 17 00:00:00 2001 From: Eric Snowberg Date: Tue, 29 Aug 2023 17:25:42 -0400 Subject: 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 --- load-options.c | 1 + 1 file changed, 1 insertion(+) (limited to 'load-options.c') diff --git a/load-options.c b/load-options.c index e7b64471..091cb18b 100644 --- a/load-options.c +++ b/load-options.c @@ -6,6 +6,7 @@ #include "shim.h" CHAR16 *second_stage; +CHAR16 *optional_second_stage = NULL; void *load_options; UINT32 load_options_size; -- cgit v1.2.3