opt->id = talloc_asprintf(opt, "%s#%s", conf->dc->device->device->id,
name);
opt->name = talloc_strdup(opt, name);
+ d_opt->option = opt;
args = talloc_strdup(opt, "");
initrd = conf_get_global_option(conf, "initrd");
}
out_add:
- d_opt->boot_image = create_devpath_resource(opt,
+ d_opt->boot_image = create_devpath_resource(d_opt,
conf->dc->device, value);
if (root) {
opt->boot_args = args;
if (initrd) {
- d_opt->initrd = create_devpath_resource(opt,
+ d_opt->initrd = create_devpath_resource(d_opt,
conf->dc->device, initrd);
opt->description = talloc_asprintf(opt, "%s initrd=%s %s",