refs #2412 fix two more bugs with extended/logical partitions

particionador
Natalia Serrano 2025-07-09 14:12:19 +02:00
parent 0d28787318
commit cf5ec4c214
1 changed files with 2 additions and 2 deletions

View File

@ -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