live: ensure image file exists after partclone

check that there is a file and that is accessible
master
OpenGnSys Support Team 2023-12-17 11:26:23 +01:00
parent 2bddf205d9
commit dff126cf40
1 changed files with 4 additions and 0 deletions

View File

@ -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)