diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2023-12-17 11:26:23 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2023-12-17 11:27:28 +0100 |
commit | dff126cf4005f295747cbd25af81e01a7ff7880e (patch) | |
tree | b18383861dfc044b0fa798ba0c4bcac8e8422a97 | |
parent | 2bddf205d94f0ad9ad1fefdcac671357cf558087 (diff) |
live: ensure image file exists after partclone
check that there is a file and that is accessible
-rw-r--r-- | src/live/ogOperations.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py index 0d29948..70c4d38 100644 --- a/src/live/ogOperations.py +++ b/src/live/ogOperations.py @@ -478,6 +478,10 @@ class OgLiveOperations: ogExtendFs(disk, partition) + if os.access(f'{image_path}', os.R_OK) == False: + logging.error(f'Cannot access partclone image file {image_path}') + raise ValueError('Cannot access image file') + image_info = ogGetImageInfo(image_path) except: self._restartBrowser(self._url) |