X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fkboot-parser.c;h=f0976746ee80241e679124ee443e3b4a1193b983;hp=e602dc4142582b31db7ad2ac25d96481bc895554;hb=478d08edd798815929729a17b4c34a9ebb9b559e;hpb=5be946cda7b8e2271ade6188ca3f5dc068826619 diff --git a/discover/kboot-parser.c b/discover/kboot-parser.c index e602dc4..f097674 100644 --- a/discover/kboot-parser.c +++ b/discover/kboot-parser.c @@ -157,9 +157,12 @@ static int kboot_parse(struct discover_context *dc, char *buf, int len) return 1; } -struct parser __kboot_parser = { +static struct parser kboot_parser = { .name = "kboot", + .method = CONF_METHOD_LOCAL_FILE, .parse = kboot_parse, .filenames = kboot_conf_files, .resolve_resource = resolve_devpath_resource, }; + +register_parser(kboot_parser);