summaryrefslogtreecommitdiffstats
path: root/discover/pb-discover.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-10-09 12:02:08 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-10-09 17:40:04 +0800
commitbc4114e2235163bd88456c25cc0a908d86151f93 (patch)
tree47e7e1674e33a5f138ed3a390c3dc02e2d9f3133 /discover/pb-discover.c
parentab7076882bc49d895209bf0ecb84e4003e034dd9 (diff)
downloadtalos-petitboot-bc4114e2235163bd88456c25cc0a908d86151f93.tar.gz
talos-petitboot-bc4114e2235163bd88456c25cc0a908d86151f93.zip
Add system info messages
Add a little infrastructure for communicating information about the system to the petitboot UIs. We just send some identifying info (type and identifier), as well as the interfaces. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/pb-discover.c')
-rw-r--r--discover/pb-discover.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/discover/pb-discover.c b/discover/pb-discover.c
index ccd1c7d..9b1f200 100644
--- a/discover/pb-discover.c
+++ b/discover/pb-discover.c
@@ -19,6 +19,7 @@
#include "discover-server.h"
#include "device-handler.h"
#include "network.h"
+#include "sysinfo.h"
static void print_version(void)
{
@@ -172,6 +173,8 @@ int main(int argc, char *argv[])
if (opts.no_autoboot == opt_yes)
config_set_autoboot(false);
+ system_info_init(server);
+
handler = device_handler_init(server, waitset, opts.dry_run == opt_yes);
if (!handler)
return EXIT_FAILURE;
OpenPOWER on IntegriCloud