summaryrefslogtreecommitdiffstats
path: root/src/live
diff options
context:
space:
mode:
Diffstat (limited to 'src/live')
-rw-r--r--src/live/ogOperations.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py
index 7d0d832..2d5146c 100644
--- a/src/live/ogOperations.py
+++ b/src/live/ogOperations.py
@@ -201,7 +201,11 @@ class OgLiveOperations:
not tip_check_csum(repo, name)):
self._copy_image_to_cache(name)
else:
+ if os.access(f'/opt/opengnsys/images', os.R_OK) == False:
+ raise OgError('Cannot access /opt/opengnsys/images in read mode, check permissions')
+
image_path = f'/opt/opengnsys/images/{name}.img'
+
self._restore_image(image_path, devpath)
def _restore_image_tiptorrent(self, repo, name, devpath):