refs #1594 ignore empty slots

pull/1/head
Natalia Serrano 2025-02-20 14:02:10 +01:00
parent e6937a211a
commit ad404f9982
1 changed files with 6 additions and 3 deletions

View File

@ -144,9 +144,12 @@ def ogCreatePartitions (disk, parts):
return None
START = EXTSTART
SECTORS = EXTSTART+EXTSIZE
# Generar datos para la partición.
sfdisk_input += f'{DISK}{NVME_PREFIX}{PART} : start={START}, size={SIZE}, Id={ID}\n'
# Error si se supera el nº total de sectores.
# Generar datos para la partición.
# En el caso de que la partición sea EMPTY no se crea nada
if 'EMPTY' != TYPE:
sfdisk_input += f'{DISK}{NVME_PREFIX}{PART} : start={START}, size={SIZE}, Id={ID}\n'
START += SIZE
# Error si se supera el nº total de sectores.