Delete partition table prior to automatic partitioning

This commit is contained in:
Rudra Saraswat 2023-05-01 18:52:43 +05:30
parent 96aea10b4b
commit 4a5a918e6f

View file

@ -122,6 +122,9 @@ def inst_partition(config):
efi = config['partition']['efi'] efi = config['partition']['efi']
partitions = config['partition']['partitions'] partitions = config['partition']['partitions']
# Delete partition table
exec(['dd', 'if=/dev/zero', f'of={device}', 'bs=512', 'count=1'])
if mode == 'Auto': if mode == 'Auto':
if efi: if efi:
# Create GPT label # Create GPT label