mirror of https://git.48k.eu/ogclient
src: append .img to log that report image fetching
parent
3d47b5069a
commit
9270a6c58f
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue