From 9270a6c58ff7e557eb7faf97dfdc436ab8edd4e3 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Thu, 29 Aug 2024 13:10:50 +0200 Subject: src: append .img to log that report image fetching --- src/live/ogOperations.py | 2 +- src/utils/tiptorrent.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py index a5e6045..df0c2e1 100644 --- a/src/live/ogOperations.py +++ b/src/live/ogOperations.py @@ -204,7 +204,7 @@ class OgLiveOperations: src = f'/opt/opengnsys/images/{image_name}.img' try: - logging.info(f'Fetching image {image_name} from {src}') + logging.info(f'Fetching image {image_name}.img from {src}') logging.info('*DO NOT REBOOT OR POWEROFF* the client during this time') r = shutil.copy(src, dst) tip_write_csum(image_name) diff --git a/src/utils/tiptorrent.py b/src/utils/tiptorrent.py index 4f177cd..252161b 100644 --- a/src/utils/tiptorrent.py +++ b/src/utils/tiptorrent.py @@ -109,7 +109,7 @@ def tip_client_get(tip_addr, image_name): if os.path.exists(f"{image_path}.full.sum"): os.unlink(f"{image_path}.full.sum") - logging.info(f'Fetching image {image_name} from tiptorrent server at {tip_addr}') + logging.info(f'Fetching image {image_name}.img from tiptorrent server at {tip_addr}') logging.info('*DO NOT REBOOT OR POWEROFF* the client during this time') cmd = f'tiptorrent-client {tip_addr} {image_name}.img' logfile = open('/tmp/command.log', 'wb', 0) -- cgit v1.2.3-18-g5258