diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2023-08-16 14:10:45 +0200 |
---|---|---|
committer | Jose M. Guisado <jguisado@soleta.eu> | 2023-09-13 15:18:03 +0200 |
commit | 65f1cbc7eb8033d6dc9aca3c23feaf1cfc01ac04 (patch) | |
tree | d7ebe38404cda39805f9f014f868fe54825cd17c /tests/units/test_0006_run_schedule.py | |
parent | a49988a22229e08eca600bf8ef06d04a9e7afa41 (diff) |
utils: add uefi.py
Add UEFI related utilities inside a new utility module: uefi.py
_check_efibootmgr_json
======================
Check if the system efibootmgr executable supports JSON output. This is
a private function used only by other functions from uefi.py.
is_uefi_supported
=================
Check if the system supports UEFI firmware.
run_efibootmgr_json
===================
Runs efibootmgr with json output support. Return the JSON output as a
Python dict.
efibootmgr_create_bootentry
===========================
Create nvram boot entry. This bootentry is usually later set to boot
next just once via "BootNext" nvram variable.
efibootmgr_delete_bootentry
===========================
Delete a nvram boot entry. Used to avoid duplicates when booting the
same disk and partition from a given client.
efibootmgr_bootnext
===================
Set nvram "BootNext" variable to a given boot entry so after client
reboot, PXE is not executed and the given boot entry takes precedence.
Add dependency with efibootmgr version >= 18, and efibootmgr JSON output
which is currently out of tree from util-linux repo.
Diffstat (limited to 'tests/units/test_0006_run_schedule.py')
0 files changed, 0 insertions, 0 deletions