|
|
|
@ -140,7 +140,7 @@ def main (disk, par, repo, imgname):
|
|
|
|
|
# Evaluar variable de engine.cfg para reducir el sistema de archivos en la creacion
|
|
|
|
|
if ogGlobals.IMGREDUCE:
|
|
|
|
|
SystemLib.ogEcho (['log', 'session'], None, f'[30] {ogGlobals.lang.MSG_HELP_ogReduceFs}')
|
|
|
|
|
FileSystemLib.ogReduceFs (disk, par)
|
|
|
|
|
SystemLib.ogExecAndLog ('command', [f'{ogGlobals.OGPYFUNCS}/ogReduceFs}', disk, par])
|
|
|
|
|
newsizefs = FileSystemLib.ogGetFsSize (disk, par)
|
|
|
|
|
timeaux = time.time() - time1
|
|
|
|
|
SystemLib.ogEcho (['log', 'session'], None, f' {ogGlobals.lang.MSG_SCRIPTS_TIME_PARTIAL} ( {newsizefs} KB ) : {int (timeaux/60)}m {int (timeaux%60)}s')
|
|
|
|
@ -157,7 +157,7 @@ def main (disk, par, repo, imgname):
|
|
|
|
|
with open (ogGlobals.OGLOGCOMMAND, 'w') as fd: fd.write ('')
|
|
|
|
|
time2 = time.time()
|
|
|
|
|
SystemLib.ogEcho (['log', 'session'], None, f'[40] {ogGlobals.lang.MSG_HELP_ogCreateImage} : ogCreateImage {disk} {par} {repo} {imgname} {ogGlobals.IMGPROG} {ogGlobals.IMGCOMP}')
|
|
|
|
|
if not ImageLib.ogCreateImage (disk, par, repo, f'/{imgname}', ogGlobals.IMGPROG, ogGlobals.IMGCOMP):
|
|
|
|
|
if not SystemLib.ogExecAndLog ('command', [f'{ogGlobals.OGPYFUNCS}/ogCreateImage}', disk, par, repo, f'/{imgname}', ogGlobals.IMGPROG, ogGlobals.IMGCOMP]):
|
|
|
|
|
SystemLib.ogRaiseError ([], ogGlobals.OG_ERR_IMAGE, 'ogCreateImage')
|
|
|
|
|
sys.exit (1)
|
|
|
|
|
resumecreateimage = subprocess.run (['grep', 'Total Time:', ogGlobals.OGLOGCOMMAND], capture_output=True, text=True).stdout
|
|
|
|
|