diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-03-19 14:00:53 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-04-29 14:43:04 +1000 |
commit | 5e7c90eddd7ac2e4a3b05a7a5f6e29166edfa161 (patch) | |
tree | 2ad50697e3380c2c14f72522fa719d3d571e7f8b /discover/kboot-parser.c | |
parent | 45e92aa32a80fdbbf5ad3ad64e34b1ac872018ef (diff) | |
download | petitboot-5e7c90eddd7ac2e4a3b05a7a5f6e29166edfa161.zip petitboot-5e7c90eddd7ac2e4a3b05a7a5f6e29166edfa161.tar.gz |
discover: Add configuration methods
We'd like to be able to download petitboot configurations from other
sources (not just local files), but we'll need some way to indicate to
the parsers that a chunk of config data is from a specific source.
This change adds "configuration methods". At present, we have only one:
CONF_METHOD_LOCAL_FILE. For any incoming configuration data, we only run
parsers that have registered themselves with that configuration method.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/kboot-parser.c')
-rw-r--r-- | discover/kboot-parser.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/discover/kboot-parser.c b/discover/kboot-parser.c index 884658e..f097674 100644 --- a/discover/kboot-parser.c +++ b/discover/kboot-parser.c @@ -159,6 +159,7 @@ static int kboot_parse(struct discover_context *dc, char *buf, int len) static struct parser kboot_parser = { .name = "kboot", + .method = CONF_METHOD_LOCAL_FILE, .parse = kboot_parse, .filenames = kboot_conf_files, .resolve_resource = resolve_devpath_resource, |