Move boot to discover server
authorJeremy Kerr <jk@ozlabs.org>
Wed, 27 Feb 2013 08:45:21 +0000 (16:45 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 15 Apr 2013 07:42:27 +0000 (15:42 +0800)
commitc62667e5c78ea212e5ac49244e9792954a1d8f71
tree4206cfff1ddd26ad16e279b065fdf41c00664bb6
parentb8122dc9340e2f208220f0c88b4d71f91b78774f
Move boot to discover server

This change moves the boot-via-kexec functionality from the UIs to the
discover server.

On the UI side: rather than run kexec directly, we just send a message
to the discover server. Because this is generic discover client
functionality, we no longer need the boot callbacks in the twin- and
ncurses-specific code.

We also remove the kexec and URL-loading code from the UIs, and add it
to the discover server code, in paths.c. We expose this to the server
though a new function:

  load_path(void *, const char *, unsigned int *);

On the server side, we simply move hook up the boot() function to use
the load_file and kexec calls.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
14 files changed:
discover/boot.c
discover/paths.c
discover/paths.h
ui/common/Makefile.am
ui/common/loader.c [deleted file]
ui/common/loader.h [deleted file]
ui/common/ui-system.c
ui/common/ui-system.h
ui/ncurses/generic-main.c
ui/ncurses/nc-cui.c
ui/ncurses/nc-cui.h
ui/twin/main-generic.c
ui/twin/pbt-client.c
ui/twin/pbt-client.h