summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Grandbois <brett.grandbois@opengear.com>2018-05-03 15:30:20 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-05-04 10:26:56 +1000
commitfa44993a61fc7ca0f3f73233ebf761dabfd5a1fa (patch)
tree5dbad4b3e9d1bf8646eafd7a93d62199fc9be3b5
parent0460a745e355158559c01b25f8138404f21b5d92 (diff)
downloadtalos-petitboot-fa44993a61fc7ca0f3f73233ebf761dabfd5a1fa.zip
talos-petitboot-fa44993a61fc7ca0f3f73233ebf761dabfd5a1fa.tar.gz
discover/grub: Add cmdline signature support for BLS entries
Follow along the way the linux builtin does it. Signed-off-by: Brett Grandbois <brett.grandbois@opengear.com> Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
-rw-r--r--discover/grub2/blscfg.c6
1 files changed, 6 insertions, 0 deletions
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);
OpenPOWER on IntegriCloud