summaryrefslogtreecommitdiffstats
path: root/src/utils/bios.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/bios.py')
-rw-r--r--src/utils/bios.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/bios.py b/src/utils/bios.py
index 1c16633..9c62b38 100644
--- a/src/utils/bios.py
+++ b/src/utils/bios.py
@@ -8,6 +8,7 @@
import logging
import os
+from src.log import OgError
def get_grub_boot_params(mountpoint, device):
@@ -35,7 +36,7 @@ def get_vmlinuz_path(mountpoint):
target_file = file
if not target_file:
- raise FileNotFoundError(f'vmlinuz not found in {initrd_dir}')
+ raise OgError(f'vmlinuz not found in {initrd_dir}')
return os.path.join(linuz_dir, target_file)
@@ -48,6 +49,6 @@ def get_initrd_path(mountpoint):
target_file = file
if not target_file:
- raise FileNotFoundError(f'initrd not found in {initrd_dir}')
+ raise OgError(f'initrd not found in {initrd_dir}')
return os.path.join(initrd_dir, target_file)