assert(!opt->option->boot_image_file);
assert(!opt->option->initrd_file);
assert(!opt->option->icon_file);
+ assert(!opt->option->device_id);
if (opt->boot_image)
opt->option->boot_image_file = opt->boot_image->url->full;
opt->option->initrd_file = opt->initrd->url->full;
if (opt->icon)
opt->option->icon_file = opt->icon->url->full;
+
+ opt->option->device_id = opt->device->device->id;
}
static void process_boot_option_queue(struct device_handler *handler)
opt->source->name, opt->option->id);
talloc_free(opt);
} else {
+ pb_log("boot option %s is unresolved, "
+ "adding to queue\n",
+ opt->option->id);
list_add(&handler->unresolved_boot_options,
&opt->list);
talloc_steal(handler, opt);
struct discover_boot_option *boot_option)
{
boot_option->source = ctx->parser;
- list_add(&ctx->boot_options, &boot_option->list);
+ list_add_tail(&ctx->boot_options, &boot_option->list);
talloc_steal(ctx, boot_option);
}