From c62667e5c78ea212e5ac49244e9792954a1d8f71 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Wed, 27 Feb 2013 16:45:21 +0800 Subject: 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 --- discover/paths.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'discover/paths.h') diff --git a/discover/paths.h b/discover/paths.h index e7c23e5..34de79a 100644 --- a/discover/paths.h +++ b/discover/paths.h @@ -51,4 +51,7 @@ char *encode_label(void *alloc_ctx, const char *label); */ const char *mount_base(void); +/* Load a (potentially remote) file, and return a guaranteed-local name */ +char *load_file(void *ctx, const char *remote, unsigned int *tempfile); + #endif /* PATHS_H */ -- cgit v1.2.1