Instead of adding a boot option explicitly, just add it to the grub script
boot option list and increment the number of options. That way BLS entries
will be known by the grub script handler and can check if is a valid index.
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
option->is_default = option_is_default(state->script, option);
- discover_context_add_boot_option(dc, opt);
+ list_add_tail(&state->script->options, &opt->list);
+ state->script->n_options++;
device_handler_status_dev_info(dc->handler, dc->device,
_("Created menu entry from BLS file %s"),