diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-03-06 17:14:58 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-04-15 15:42:27 +0800 |
commit | b8122dc9340e2f208220f0c88b4d71f91b78774f (patch) | |
tree | 9eaf0ab4357ef2153ec62b7cda241356037188e2 /discover/boot.c | |
parent | ceefe00bf8c1498dfc2118d2b3666f67f91bb956 (diff) | |
download | talos-petitboot-b8122dc9340e2f208220f0c88b4d71f91b78774f.tar.gz talos-petitboot-b8122dc9340e2f208220f0c88b4d71f91b78774f.zip |
discover: Implement device handler boot path
This change adds a funtion, device_handler_boot, which processes the
boot command message from the discover server.
We add a new file, discover/boot.c (and a corresponding header) with a
skeleton for the final kexec code.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/boot.c')
-rw-r--r-- | discover/boot.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/discover/boot.c b/discover/boot.c new file mode 100644 index 0000000..ddb9e7d --- /dev/null +++ b/discover/boot.c @@ -0,0 +1,14 @@ + +#include "boot.h" + +int boot(void *ctx, struct boot_option *opt, struct boot_command *cmd, + int dry_run) +{ + /* todo: run kexec with options from opt & cmd */ + (void)ctx; + (void)opt; + (void)cmd; + (void)dry_run; + + return 0; +} |