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 815211f..339c58c 100644
--- a/src/live/ogOperations.py
+++ b/src/live/ogOperations.py
@@ -40,6 +40,7 @@ from src.ogClient import ogClient
from src.utils.probe import OSFamily, get_os_family
OG_SHELL = '/bin/bash'
+OG_CACHE_PATH = '/opt/opengnsys/cache/opt/opengnsys/images'
class OgLiveOperations:
def __init__(self, config):
@@ -166,6 +167,9 @@ class OgLiveOperations:
self._restore_image(image_path, devpath)
def _restore_image_tiptorrent(self, repo, name, devpath):
+ if not os.path.exists(OG_CACHE_PATH):
+ raise RuntimeError('No cache partition is mounted')
+
image_path = f'/opt/opengnsys/cache/opt/opengnsys/images/{name}.img'
try:
if (not os.path.exists(image_path) or