summaryrefslogtreecommitdiffstats
path: root/src/utils/sw_inventory.py
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2023-08-16 14:10:45 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-03-04 11:33:10 +0100
commit4129256caf54ab61ff87fdd5c25eb08f1c2b0458 (patch)
treefb91ccb0bc55dbbb7d772c62b66171d70eebf634 /src/utils/sw_inventory.py
parente3c375f8d7d449ede2848e13209e0ee4dd075fb4 (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 'src/utils/sw_inventory.py')
0 files changed, 0 insertions, 0 deletions