mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 21:16:57 +02:00
fix(disk_util): don't run blkid on empty partitions
This commit is contained in:
parent
bb6a18fbb8
commit
02bd7351dd
@ -230,6 +230,10 @@ def GetPartitionTableFromImage(options, config, partitions):
|
|||||||
part['image_compat'] = False
|
part['image_compat'] = False
|
||||||
|
|
||||||
for part in partitions.itervalues():
|
for part in partitions.itervalues():
|
||||||
|
if part.get('type', 'blank') == 'blank':
|
||||||
|
continue
|
||||||
|
if not part.get('image_exists', False):
|
||||||
|
continue
|
||||||
if not part.get('fs_type', None):
|
if not part.get('fs_type', None):
|
||||||
continue
|
continue
|
||||||
with PartitionLoop(options, part) as loop_dev:
|
with PartitionLoop(options, part) as loop_dev:
|
||||||
|
Loading…
Reference in New Issue
Block a user