summaryrefslogtreecommitdiffstats
path: root/discover/device-handler.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-03-19 14:00:53 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-04-29 14:43:04 +1000
commit5e7c90eddd7ac2e4a3b05a7a5f6e29166edfa161 (patch)
tree2ad50697e3380c2c14f72522fa719d3d571e7f8b /discover/device-handler.c
parent45e92aa32a80fdbbf5ad3ad64e34b1ac872018ef (diff)
downloadtalos-petitboot-5e7c90eddd7ac2e4a3b05a7a5f6e29166edfa161.tar.gz
talos-petitboot-5e7c90eddd7ac2e4a3b05a7a5f6e29166edfa161.zip
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/device-handler.c')
-rw-r--r--discover/device-handler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c
index a8df295..6ff70c1 100644
--- a/discover/device-handler.c
+++ b/discover/device-handler.c
@@ -388,7 +388,7 @@ static int handle_add_udev_event(struct device_handler *handler,
}
/* run the parsers. This will populate the ctx's boot_option list. */
- iterate_parsers(ctx);
+ iterate_parsers(ctx, CONF_METHOD_LOCAL_FILE);
/* add discovered stuff to the handler */
context_commit(handler, ctx);
OpenPOWER on IntegriCloud