X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fevent-parser.c;h=99e2654b2dc22ba3b616590b61209e52fc1e719f;hp=240f8976249c13decf3b720f740d2580560553c0;hb=4a78c9a5327cad94a2c23b9bff8edcd77fb54fa9;hpb=3cc90580d7c444f75b07282568e83053eb4d54dc diff --git a/discover/event-parser.c b/discover/event-parser.c index 240f897..99e2654 100644 --- a/discover/event-parser.c +++ b/discover/event-parser.c @@ -83,6 +83,9 @@ int parse_user_event(struct discover_context *ctx, struct event *event) opt->description = talloc_asprintf(opt, "%s %s", opt->boot_image_file, opt->boot_args ? : ""); + if (event_get_param(event, "default")) + opt->is_default = true; + discover_context_add_boot_option(ctx, d_opt); return 0;