summaryrefslogtreecommitdiffstats
path: root/src/live
diff options
context:
space:
mode:
Diffstat (limited to 'src/live')
-rw-r--r--src/live/ogOperations.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py
index d4817f6..086a0b4 100644
--- a/src/live/ogOperations.py
+++ b/src/live/ogOperations.py
@@ -208,6 +208,11 @@ class OgLiveOperations:
if (not os.path.exists(image_path) or
not tip_check_csum(repo, name)):
self._copy_image_to_cache(name)
+
+ if (not os.path.exists(image_path)):
+ raise OgError(f'could not find {image_path} in cache')
+ if (not tip_check_csum(repo, name)):
+ raise OgError(f'Failed to validate checksum for {name}.img')
else:
if os.access(f'/opt/opengnsys/images', os.R_OK) == False:
raise OgError('Cannot access /opt/opengnsys/images in read mode, check permissions')