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

Methods

__init__

Initialize the facade.

activate

Activate a boot entry.

create

Create a new boot entry on the EFI.

deactivate

Deactivate a boot entry.

delete

Delete a boot entry.

find

Find all boot entries with the given label.

print_bootcurrent

Print the current boot entry in an easy to parse format.

print_bootnext

Print the next boot entry in an easy to parse format.

print_bootorder

Print the boot order in an easy to parse format.

print_entry

Print a boot entry in an easy to parse format.

print_state

Print the state in an easy to parse format.

print_timeout

Print the timeout in an easy to parse format.

push

Push the config to the EFI.

set_bootnext

Set the bootnext field.

set_bootorder

Set the boot order.

set_timeout

Set the boot timeout.

unset_bootnext

Unset the bootnext field.

unset_bootorder

Unset the boot order.

unset_timeout

Unset the boot timeout.

Attributes

config

The efiboot config.

controller

The controller.

state

The current state.