live: validate rw access to image folder after remount

check that it is readable and writable
master
OpenGnSys Support Team 2023-12-16 17:14:02 +01:00
parent 41cf2eb229
commit 5d19ff5fe9
1 changed files with 5 additions and 0 deletions

View File

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