EfibootmgrController#
- class efiboot.backends.efibootmgr.EfibootmgrController(disk_path, partition, edd, edd_device, force_gpt)#
An
EfiController
for Unix.The current implementation delegates to the
efibootmgr
CLI.- Parameters
disk_path (Path) – Path to the disk containing the EFI System Partition, e.g.
/dev/sda
.partition (int) – The partition number of the EFI System Partition.
edd (int) – The EDD version (1 or 3; -1 for autodetect).
edd_device (int) – The EDD 1.0 device number, usually 0x80.
force_gpt (bool) – If true, treat disks with invalid PMBR as GPT.
Methods
Activate a boot entry.
Create a new boot entry on the EFI.
Deactivate a boot entry.
Delete a boot entry.
Create a controller from a config file.
Read the EFI variables.
True if this controller class is compatible with the host system.
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
Disk containing the ESP.
The ESP partition number.
EDD version (1 or 3, -1 for autodetect).
EDD 1.0 device number, usually 0x80.
Treat disks with invalid PMBR as GPT.