diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/live/ogOperations.py | 5 |
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') |