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

Samuel Mendoza-Jonas sam at mendozajonas.com
Mon May 7 14:10:25 AEST 2018


On Thu, 2018-05-03 at 15:30 +1000, Brett Grandbois wrote:
> Follow along the way the linux builtin does it.
> 
> Signed-off-by: Brett Grandbois <brett.grandbois at opengear.com>

Cheers, merged as fa44993

> ---
>  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);



More information about the Petitboot mailing list