summaryrefslogtreecommitdiffstats
path: root/discover/event.c
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2014-07-24 15:05:36 +1000
committerJeremy Kerr <jk@ozlabs.org>2014-07-28 16:02:43 +0800
commite1f6ffb9ca9e35738385a3524ba46896a0b519e6 (patch)
tree823a6baad3d7ec7a34e44254c5f84043de7be812 /discover/event.c
parenta5dad9c05cd72820e64e0461889e9e77eaf8202d (diff)
downloadtalos-petitboot-e1f6ffb9ca9e35738385a3524ba46896a0b519e6.tar.gz
talos-petitboot-e1f6ffb9ca9e35738385a3524ba46896a0b519e6.zip
discover: Enable 'url' pb-events
Adds a new option to pb-event; ./pb-event url@dev url=scheme://path/to/petitboot.conf Specifies a remote conf file to parse for boot options Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/event.c')
-rw-r--r--discover/event.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/discover/event.c b/discover/event.c
index 6434b40..7932378 100644
--- a/discover/event.c
+++ b/discover/event.c
@@ -47,6 +47,8 @@ static int event_parse_ad_header(char *buf, int len, enum event_action *action,
*action = EVENT_ACTION_ADD;
else if (streq(buf, "remove"))
*action = EVENT_ACTION_REMOVE;
+ else if (streq(buf, "url"))
+ *action = EVENT_ACTION_URL;
else if (streq(buf, "conf"))
*action = EVENT_ACTION_CONF;
else if (streq(buf, "dhcp"))
OpenPOWER on IntegriCloud