4 #include <types/types.h>
5 #include "device-handler.h"
10 typedef void (*boot_status_fn)(void *arg, struct status *);
12 struct boot_task *boot(void *ctx, struct discover_boot_option *opt,
13 struct boot_command *cmd, int dry_run,
14 boot_status_fn status_fn, void *status_arg);
16 void boot_cancel(struct boot_task *task);
19 const char *local_image;
20 const char *local_initrd;
21 const char *local_dtb;
22 char *local_image_override;
23 char *local_initrd_override;
24 char *local_dtb_override;
26 const char *boot_console;
27 boot_status_fn status_fn;
31 bool verify_signature;
33 const char *local_image_signature;
34 const char *local_initrd_signature;
35 const char *local_dtb_signature;
36 const char *local_cmdline_signature;
37 struct list resources;
40 struct boot_resource {
41 struct load_url_result *result;
43 const char **local_path;
46 struct list_item list;
50 KEXEC_LOAD_DECRYPTION_FALURE = 252,
51 KEXEC_LOAD_SIG_SETUP_INVALID = 253,
52 KEXEC_LOAD_SIGNATURE_FAILURE = 254,