summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-08-29 13:10:50 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-08-29 13:10:50 +0200
commit9270a6c58ff7e557eb7faf97dfdc436ab8edd4e3 (patch)
tree9d133c41594c6667818f2dd4f4118f2419f2577b
parent3d47b5069a5c6955390ca1bb85a7b194c73049d2 (diff)
src: append .img to log that report image fetching
-rw-r--r--src/live/ogOperations.py2
-rw-r--r--src/utils/tiptorrent.py2
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)