Add LICK to the current boot loader (or set up a new boot loader) More...
Go to the source code of this file.
Data Structures | |
struct | loader_t |
functions relevant to a boot loader plugin. Do not use items directly, use the wrappers in boot-loader.h instead More... | |
Functions | |
loader_t * | get_loader (sys_info_t *info) |
get the boot loader plugin that should be used with the system More... | |
void | free_loader (loader_t *loader) |
frees memory used by a loader_t | |
int | check_loader (loader_t *l) |
determine if the boot loader is already installed More... | |
int | install_loader (loader_t *l, sys_info_t *info, lickdir_t *lick) |
installs the loader More... | |
int | uninstall_loader (loader_t *l, int reinstall, sys_info_t *info, lickdir_t *lick) |
uninstalls the loader More... | |
menu_t * | get_menu (loader_t *l) |
get the menu corresponding to the plugin More... | |
int | fix_loader (loader_t *l, menu_t *m, lickdir_t *lick) |
completely replace the Windows EFI loader More... | |
int | check_fix_loader (loader_t *l, menu_t *m, lickdir_t *lick) |
determine if the loader has been fixed More... | |
Add LICK to the current boot loader (or set up a new boot loader)
determine if the loader has been fixed
int check_loader | ( | loader_t * | l | ) |
determine if the boot loader is already installed
l | a supported plugin |
completely replace the Windows EFI loader
Some systems don't follow the UEFI spec, instead opting to boot /EFI/boot/bootx64.efi
and/or /EFI/Microsoft/Boot/bootmgfw.efi
. This function backs up both of these, then replaces the former.
This requires the bootloader to be installed. This is automatically reversed when uninstalling.
loader_t* get_loader | ( | sys_info_t * | info | ) |
get the boot loader plugin that should be used with the system
info | a sys_info_t, filled with info from the current system |
get the menu corresponding to the plugin
l | a supported plugin |
int install_loader | ( | loader_t * | l, |
sys_info_t * | info, | ||
lickdir_t * | lick | ||
) |
installs the loader
l | a supported plugin |
info | a sys_info_t, filled with info from the current system |
lick | the LICK directory to boot to |
int uninstall_loader | ( | loader_t * | l, |
int | reinstall, | ||
sys_info_t * | info, | ||
lickdir_t * | lick | ||
) |
uninstalls the loader
l | a supported plugin |
reinstall | 1 if LICK is being reinstalled |
info | a sys_info_t, filled with info from the current system |
lick | the LICK directory |