EFI shim command.
Definition in file shim_cmd.c.
| static int shim_exec |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
|
static |
The "shim" command.
- Parameters
-
| argc | Argument count |
| argv | Argument list |
- Return values
-
Definition at line 81 of file shim_cmd.c.
107 if ( download && name_uri &&
109 &
image ) ) != 0 ) ) {
115 opts.allow_sbat ) ) != 0 )
struct image_tag selected_image
struct arbelprm_rc_send_wqe rc
int optind
Current option index.
static struct command_descriptor shim_cmd
"shim" command descriptor
int parse_options(int argc, char **argv, struct command_descriptor *cmd, void *opts)
Parse command-line options.
struct image * find_image_tag(struct image_tag *tag)
Find image by tag.
uint32_t kernel
Kernel version (numeric)
static int efi_can_load(struct image *image)
Check if EFI image can be loaded directly.
static union @447 opts
"cert<xxx>" option list
int shim(struct image *image, int require_loader, int allow_pxe, int allow_sbat)
Set shim image.
#define NULL
NULL pointer (VOID *)
int imgacquire(const char *name_uri, unsigned long timeout, struct image **image)
Acquire an image.
References efi_can_load(), find_image_tag(), imgacquire(), kernel, NULL, optind, opts, parse_options(), rc, selected_image, shim(), shim_cmd, and shim_dummy.