[PATCH] discover/grub: Add cmdline signature support for BLS entries

Brett Grandbois brett.grandbois at opengear.com
Thu May 3 15:30:20 AEST 2018


Follow along the way the linux builtin does it.

Signed-off-by: Brett Grandbois <brett.grandbois at opengear.com>
---
 discover/grub2/blscfg.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/discover/grub2/blscfg.c b/discover/grub2/blscfg.c
index a1076b9..78086ee 100644
--- a/discover/grub2/blscfg.c
+++ b/discover/grub2/blscfg.c
@@ -148,6 +148,12 @@ static void bls_finish(struct conf_context *conf)
 		opt->dtb = create_grub2_resource(opt, conf->dc->device,
 						 root, state->dtb);
 
+	char* args_sigfile_default = talloc_asprintf(opt,
+		"%s.cmdline.sig", state->image);
+	opt->args_sig_file = create_grub2_resource(opt, conf->dc->device,
+						root, args_sigfile_default);
+	talloc_free(args_sigfile_default);
+
 	option->is_default = option_is_default(state, option);
 
 	list_add_tail(&state->script->options, &opt->list);
-- 
2.7.4



More information about the Petitboot mailing list