static void yaboot_finish(struct conf_context *conf)
{
struct yaboot_state *state = conf->parser_info;
+ const char *default_label;
struct boot_option *opt;
assert(state->opt);
conf_strip_str(opt->boot_args);
conf_strip_str(opt->description);
+ default_label = conf_get_global_option(conf, "default");
+ if (default_label &&
+ !strcasecmp(state->opt->option->name, default_label))
+ state->opt->option->is_default = true;
+
discover_context_add_boot_option(conf->dc, state->opt);
}
{ .name = "video" },
{ .name = "literal" },
{ .name = "ramdisk" },
+ { .name = "default" },
{ .name = NULL },
};