summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2023-12-17 20:53:43 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2023-12-17 20:53:43 +0100
commit32673cf3378e567dfacc23c3cd98af1296b9452a (patch)
tree6621309f6214f68faa80c7b095b13a64bb7e21d5
parentdff126cf4005f295747cbd25af81e01a7ff7880e (diff)
live: adding logging to notify that image file already existsv1.3.2-4
Just informational, provide a notice that the file already exists.
-rw-r--r--src/live/ogOperations.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py
index 70c4d38..1729a0b 100644
--- a/src/live/ogOperations.py
+++ b/src/live/ogOperations.py
@@ -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)