summaryrefslogtreecommitdiffstats
path: root/src/utils/uefi.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/uefi.py')
-rw-r--r--src/utils/uefi.py14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/utils/uefi.py b/src/utils/uefi.py
index e113512..9bc2e09 100644
--- a/src/utils/uefi.py
+++ b/src/utils/uefi.py
@@ -11,7 +11,6 @@ import logging
import os
import shlex
import subprocess
-from src.utils.disk import get_efi_partition
import fdisk
@@ -47,17 +46,8 @@ def _check_efibootmgr_json():
return supported
-def is_uefi_supported(disknum):
- is_supported = os.path.exists("/sys/firmware/efi")
-
- if is_supported:
- try:
- get_efi_partition(disknum)
- except Exception as e:
- logging.info(e)
- is_supported = False
-
- return is_supported
+def is_uefi_supported():
+ return os.path.exists("/sys/firmware/efi")
def run_efibootmgr_json():