mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 21:16:57 +02:00
fix(disk_util): Don't try to format blank partitions.
This commit is contained in:
parent
0d750e6a28
commit
acb9800259
@ -432,7 +432,7 @@ def Format(options):
|
||||
WritePartitionTable(options, config, partitions)
|
||||
|
||||
for part in partitions.itervalues():
|
||||
if 'fs_type' not in part:
|
||||
if part['type'] == 'blank' or 'fs_type' not in part:
|
||||
continue
|
||||
|
||||
print "Formatting partition %s (%s) as %s" % (
|
||||
|
Loading…
Reference in New Issue
Block a user