[PATCH] discover/grub: Allow to set a default index for BLS entries

Peter Jones pjones at redhat.com
Wed Apr 18 00:35:51 AEST 2018


On Tue, Apr 17, 2018 at 02:40:08PM +1000, Samuel Mendoza-Jonas wrote:
> > @@ -179,6 +186,7 @@ int builtin_blscfg(struct grub2_script *script,
> >  	struct dirent **bls_entries;
> >  	struct conf_context *conf;
> >  	struct bls_state *state;
> > +	unsigned int current_idx = 0;
> 
> Without trying to over-complicate things, will a blscfg call in grub.cfg
> only occur before normal GRUB boot options or can it be in between or
> after? If the latter then would we need to set current_idx to the number
> of boot options already parsed from this grub.cfg?

It can be in the middle of them, so I think you're correct.

-- 
  Peter


More information about the Petitboot mailing list