]> git.ozlabs.org Git - petitboot/blobdiff - discover/pxe-parser.c
parser: Use list to hold parsers
[petitboot] / discover / pxe-parser.c
index 662716ac075cfe6fe73e6085de986bc08ec1b924..c300b697d0eeb769ab4986bc9e06397d4071cae6 100644 (file)
@@ -28,10 +28,9 @@ static void pxe_process_pair(struct conf_context *ctx,
                opt = discover_boot_option_create(ctx->dc, ctx->dc->device);
                ctx->parser_info = opt;
 
                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->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;
        }
 
                return;
        }