From 32673cf3378e567dfacc23c3cd98af1296b9452a Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Sun, 17 Dec 2023 20:53:43 +0100 Subject: live: adding logging to notify that image file already exists Just informational, provide a notice that the file already exists. --- src/live/ogOperations.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v1.2.3-18-g5258