refs #2412 fix two more bugs with extended/logical partitions
parent
0d28787318
commit
cf5ec4c214
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue