EfiBoot#
- class efiboot.EfiBoot(config=None, controller=None, state=None)#
The primary high-level API for efiboot.
When the parameters are not given, the config is read from
/boot/efiboot.toml
, the controller is created from the config, and the initial state is read from the controller.- Parameters
config (Optional[Config]) – The efiboot config.
controller (Optional[EfiController]) – The EFI controller.
state (Optional[EfiState]) – The current state.
- Raises
FileNotFoundError – The config file or ESP could not be found.
TypeError – There was a type error in the config.
ValueError – There was a value error in the config.
Methods
Initialize the facade.
Activate a boot entry.
Create a new boot entry on the EFI.
Deactivate a boot entry.
Delete a boot entry.
Find all boot entries with the given label.
Print the current boot entry in an easy to parse format.
Print the next boot entry in an easy to parse format.
Print the boot order in an easy to parse format.
Print a boot entry in an easy to parse format.
Print the state in an easy to parse format.
Print the timeout in an easy to parse format.
Push the config to the EFI.
Set the bootnext field.
Set the boot order.
Set the boot timeout.
Unset the bootnext field.
Unset the boot order.
Unset the boot timeout.
Attributes
The efiboot config.
The controller.
The current state.