summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 ff1a099..1747364 100644
--- a/src/live/ogOperations.py
+++ b/src/live/ogOperations.py
@@ -442,6 +442,11 @@ class OgLiveOperations:
raise ValueError('Target partition has no filesystem present')
cambiar_acceso(user=self._smb_user, pwd=self._smb_pass)
+
+ if os.access(f'/opt/opengnsys/images', os.R_OK | os.W_OK) == False:
+ logging.error('Cannot open /opt/opengnsys/images')
+ raise ValueError('Cannot access image folder')
+
ogCopyEfiBootLoader(disk, partition)
ogReduceFs(disk, partition)