mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 05:26:58 +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
|
||||
|
||||
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):
|
||||
continue
|
||||
with PartitionLoop(options, part) as loop_dev:
|
||||
|
Loading…
Reference in New Issue
Block a user