Delete partition table prior to automatic partitioning
This commit is contained in:
parent
96aea10b4b
commit
4a5a918e6f
1 changed files with 3 additions and 0 deletions
|
@ -122,6 +122,9 @@ def inst_partition(config):
|
|||
efi = config['partition']['efi']
|
||||
partitions = config['partition']['partitions']
|
||||
|
||||
# Delete partition table
|
||||
exec(['dd', 'if=/dev/zero', f'of={device}', 'bs=512', 'count=1'])
|
||||
|
||||
if mode == 'Auto':
|
||||
if efi:
|
||||
# Create GPT label
|
||||
|
|
Loading…
Reference in a new issue