mirror of https://git.48k.eu/ogclient
live: remove mbuffer leftover in image restore command
Remove mbuffer, this is never used. mbuffer has been never been used since ogClient supports native image restore. Originally this was used like this: partclone [...] | mbuffer -q -M 40M | lzop [...] supposely to speed up partclone in case the device where the read happens is slowier than the device that is used for writes. See mbuffer(1) manpage examples. In any case, this needs benchmarking to really make sure this is helping. Remove it until that ever happens.master
parent
6b1f20faf3
commit
44250d0334
|
@ -178,7 +178,6 @@ class OgLiveOperations:
|
|||
logging.debug(f'This process can take some time, please *DO NOT SHUT DOWN OR REBOOT* this client')
|
||||
cmd_lzop = shlex.split(f'lzop -dc {image_path}')
|
||||
cmd_pc = shlex.split(f'partclone.restore -d0 -C -I -o {devpath}')
|
||||
cmd_mbuffer = shlex.split('mbuffer -q -m 40M') if shutil.which('mbuffer') else None
|
||||
|
||||
if not os.path.exists(image_path):
|
||||
logging.error('f{image_path} does not exist, exiting.')
|
||||
|
|
Loading…
Reference in New Issue