EfiController#

class efiboot.EfiController#

An abstract base class for EFI controllers.

Controllers provide methods to read and modify EFI variables. Most importantly, a controller is capable of creating and deleting boot entries.

Almost all controller methods return an EfiState which provides a view of the EFI variables after each operation.

See also

Concrete controller classes are provided by backends.

Methods

__init__

activate

Activate a boot entry.

create

Create a new boot entry on the EFI.

deactivate

Deactivate a boot entry.

delete

Delete a boot entry.

from_config

Create a controller from a config file.

get_state

Read the EFI variables.

is_compatible_with_host

True if this controller class is compatible with the host system.

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.