src: append .img to log that report image fetching

master
OpenGnSys Support Team 2024-08-29 13:10:50 +02:00
parent 3d47b5069a
commit 9270a6c58f
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)