BackendMetadata#

class efiboot.backends.BackendMetadata(name, priority=500, controller='efiboot.backends.default:DefaultController')#

The efiboot backend metadata class.

Packages should register their BackendMetadata objects under the efiboot_backends entry point namespace. This allows the backend to be auto-discovered by efiboot.

Parameters
  • name (str) – The name of the backend. All backends must have a unique name. If this backend is registered under the efiboot_backends entry point, it must be registered with the same name.

  • priority (int) – The priority of this backend. This is used to pick a backend when multiple backends that are compatible with the host system. A lower value has higher priority. The default is 500.

  • controller (str) – A string of the form <module>:<class> pointing to an EfiController subclass.

Methods

__init__

import_controller

Import the backend controller class.

is_compatible_with_host

Returns true if this backend is compatible with the host system.

make_controller

Create an instance of the backend controller.

Attributes

controller

The controller class for this backend.

priority

The priority of this backend.

name

The name of the backend.