summaryrefslogtreecommitdiffstats
path: root/discover/device-handler.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-05-01 09:56:54 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-05-06 09:02:12 +0800
commit375c81a1b9aa8904dfdd0b1195fe99a1e4a2fa9d (patch)
treeb191cbbb4a36af487aaedc24572af6fadf481b24 /discover/device-handler.c
parenteefe357750df147359aa7ff532343a9b59341ef1 (diff)
downloadtalos-petitboot-375c81a1b9aa8904dfdd0b1195fe99a1e4a2fa9d.tar.gz
talos-petitboot-375c81a1b9aa8904dfdd0b1195fe99a1e4a2fa9d.zip
discover: Send boot status messages during boot()
Now what we have protocol support, send status updates during the boot process. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/device-handler.c')
-rw-r--r--discover/device-handler.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c
index 594a7c3..d3274bc 100644
--- a/discover/device-handler.c
+++ b/discover/device-handler.c
@@ -663,6 +663,13 @@ static struct discover_boot_option *find_boot_option_by_id(
return NULL;
}
+static void boot_status(void *arg, struct boot_status *status)
+{
+ struct device_handler *handler = arg;
+
+ discover_server_notify_boot_status(handler->server, status);
+}
+
void device_handler_boot(struct device_handler *handler,
struct boot_command *cmd)
{
@@ -670,5 +677,5 @@ void device_handler_boot(struct device_handler *handler,
opt = find_boot_option_by_id(handler, cmd->option_id);
- boot(handler, opt, cmd, handler->dry_run);
+ boot(handler, opt, cmd, handler->dry_run, boot_status, handler);
}
OpenPOWER on IntegriCloud