From 4432b603266ea2298d2d3506e1f1dceedf1a8d94 Mon Sep 17 00:00:00 2001 From: Natalia Serrano Date: Mon, 14 Jul 2025 12:44:20 +0200 Subject: [PATCH] refs #2450 support two disks --- ogclient/interfaceAdm/Configurar.py | 4 ++-- ogclient/lib/python3/BootLib.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ogclient/interfaceAdm/Configurar.py b/ogclient/interfaceAdm/Configurar.py index 7e9f6aa..72f43ba 100755 --- a/ogclient/interfaceAdm/Configurar.py +++ b/ogclient/interfaceAdm/Configurar.py @@ -244,8 +244,8 @@ if recreate_partition_table: # Inicia la cache. if is_there_cache: SystemLib.ogEcho (['session', 'log'], None, f'[30] {ogGlobals.lang.MSG_HELP_ogCreateCache}') - SystemLib.ogEcho (['session', 'log'], None, f' initCache.py {tch}') - rc = SystemLib.ogExecAndLog ('command', [f'{ogGlobals.OGSCRIPTS}/initCache.py', str (tch)]) + SystemLib.ogEcho (['session', 'log'], None, f' initCache.py {dis} {tch}') + rc = SystemLib.ogExecAndLog ('command', [f'{ogGlobals.OGSCRIPTS}/initCache.py', str (dis), str (tch)]) if not rc: SystemLib.ogRaiseError (['log', 'session'], ogGlobals.OG_ERR_CACHE, f'initCache.py failed') sys.exit (1) diff --git a/ogclient/lib/python3/BootLib.py b/ogclient/lib/python3/BootLib.py index 28c7d6e..3d3b7b9 100644 --- a/ogclient/lib/python3/BootLib.py +++ b/ogclient/lib/python3/BootLib.py @@ -195,7 +195,7 @@ def ogBoot (disk, par, nvramperm=False, params=''): winboot = os.environ.get ('winboot', '') if 'kexec' == winboot: # Modo de arranque en caliente (con kexec). - cp_cmd = f'cp {ogGlobals.OGLIB}/grub4dos/* {mntdir}' + cp_cmd = f'cp {ogGlobals.OGLIB}/grub4dos/* {mntdir}' ## shutil sucks a bit for copying both files and dirs subprocess.run (cp_cmd, shell=True) disk0 = int(disk)-1 par0 = int(par)-1