summaryrefslogtreecommitdiffstats
path: root/src/live
diff options
context:
space:
mode:
Diffstat (limited to 'src/live')
-rw-r--r--src/live/ogOperations.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py
index 9c32cce..c51215c 100644
--- a/src/live/ogOperations.py
+++ b/src/live/ogOperations.py
@@ -164,7 +164,7 @@ class OgLiveOperations:
return data
try:
- efibootmgr_out = run_efibootmgr_json()
+ efibootmgr_out = run_efibootmgr_json(validate=True)
except Exception as e:
logging.warning(e)
return data
@@ -172,8 +172,8 @@ class OgLiveOperations:
data['entries'] = []
for idx, entry_name in enumerate(efibootmgr_out['BootOrder']):
entry_name = 'Boot' + entry_name
- for entry in efibootmgr_out['vars']:
- if entry['name'] == entry_name:
+ for entry in efibootmgr_out.get('vars', []):
+ if entry.get('name', '') == entry_name:
entry['order'] = idx
data['entries'].append(entry)
break