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.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/utils/uefi.py b/src/utils/uefi.py
index 67f1354..e113512 100644
--- a/src/utils/uefi.py
+++ b/src/utils/uefi.py
@@ -104,6 +104,5 @@ def efibootmgr_create_bootentry(disk, part, loader, label, add_to_bootorder=True
logging.info(f'{EFIBOOTMGR_BIN} command creating boot entry: {efibootmgr_cmd}')
try:
proc = subprocess.run(shlex.split(efibootmgr_cmd), check=True, text=True)
- except subprocess.CalledProcessError as e:
- logging.error(f'Unexpected error adding boot entry to nvram. UEFI firmware might be buggy?.')
- raise e
+ except OSError as e:
+ raise OSError(f'Unexpected error adding boot entry to nvram. UEFI firmware might be buggy') from e