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->id = talloc_asprintf(opt, "%s#%s", dev->id, p);
- opt->device_id = talloc_strdup(opt, dev->id);
opt->name = talloc_strdup(opt, p);
d_opt->boot_image = user_event_resource(d_opt, event, "image");
opt = discover_boot_option_create(ctx->dc, ctx->dc->device);
ctx->parser_info = opt;
- opt->option->device_id = ctx->dc->device->device->id;
opt->option->name = talloc_strdup(opt, value);
opt->option->id = talloc_asprintf(opt, "%s@%p",
- opt->option->device_id, opt);
+ ctx->dc->device->device->id, opt);
return;
}