From cf5ec4c214dd914c469dd1927ab37529e116d948 Mon Sep 17 00:00:00 2001 From: Natalia Serrano Date: Wed, 9 Jul 2025 14:12:19 +0200 Subject: [PATCH] refs #2412 fix two more bugs with extended/logical partitions --- ogclient/lib/python3/DiskLib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ogclient/lib/python3/DiskLib.py b/ogclient/lib/python3/DiskLib.py index 164e5ef..ff2367f 100644 --- a/ogclient/lib/python3/DiskLib.py +++ b/ogclient/lib/python3/DiskLib.py @@ -109,7 +109,7 @@ def ogCreatePartitions (disk, parts): if f'{ND} {PART}' == CACHEPART and CACHESIZE: sfdisk_input += f'{DISK}{NVME_PREFIX}{PART} : start={SECTORS+1}, size={CACHESIZE}, Id=ca\n' PART += 1 - continue + #continue # Leer formato de cada parámetro - Tipo:Tamaño TYPE, SIZE = p.split (':') @@ -132,7 +132,7 @@ def ogCreatePartitions (disk, parts): ## TODO ojo, no puede haber dos extendidas # Comprobar si la partición es extendida. - if 5 == ID: + if '5' == ID: if PART > 4: SystemLib.ogRaiseError ([], ogGlobals.OG_ERR_FORMAT, '') return None