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"),
static int bls_sort(const struct dirent **ent_a, const struct dirent **ent_b)
{
- return strverscmp((*ent_b)->d_name, (*ent_a)->d_name);
+ return strverscmp((*ent_a)->d_name, (*ent_b)->d_name);
}
int builtin_blscfg(struct grub2_script *script,