live: adding logging to notify that image file already exists

Just informational, provide a notice that the file already exists.
master v1.3.2-4
OpenGnSys Support Team 2023-12-17 20:53:43 +01:00
parent dff126cf40
commit 32673cf337
1 changed files with 3 additions and 0 deletions

View File

@ -447,6 +447,9 @@ class OgLiveOperations:
logging.error('Cannot open /opt/opengnsys/images')
raise ValueError('Cannot access image folder')
if os.access(f'{image_path}', os.R_OK) == True:
logging.info(f'image file {image_path} already exists, updating.')
ogCopyEfiBootLoader(disk, partition)
ogReduceFs(disk, partition)