mirror of https://git.48k.eu/ogclient
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
parent
dff126cf40
commit
32673cf337
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue