mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 13:36:58 +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)
|
WritePartitionTable(options, config, partitions)
|
||||||
|
|
||||||
for part in partitions.itervalues():
|
for part in partitions.itervalues():
|
||||||
if 'fs_type' not in part:
|
if part['type'] == 'blank' or 'fs_type' not in part:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
print "Formatting partition %s (%s) as %s" % (
|
print "Formatting partition %s (%s) as %s" % (
|
||||||
|
Loading…
Reference in New Issue
Block a user