live: unicast-direct does not validate checksum

this restore method is unreliable, add warning to the logs.
master
OpenGnSys Support Team 2024-07-29 23:40:38 +02:00
parent c6ab7a4a2d
commit a846d5e343
1 changed files with 1 additions and 0 deletions

View File

@ -217,6 +217,7 @@ class OgLiveOperations:
if os.access(f'/opt/opengnsys/images', os.R_OK) == False: if os.access(f'/opt/opengnsys/images', os.R_OK) == False:
raise OgError('Cannot access /opt/opengnsys/images in read mode, check permissions') raise OgError('Cannot access /opt/opengnsys/images in read mode, check permissions')
logging.warn(f'Checksum validation is *NOT* available with UNICAST-DIRECT!')
image_path = f'/opt/opengnsys/images/{name}.img' image_path = f'/opt/opengnsys/images/{name}.img'
self._restore_image(image_path, devpath) self._restore_image(image_path, devpath)