From 02bd7351dd772ae90755818f1c0f15d60d293171 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Fri, 6 Jun 2014 16:11:42 -0700 Subject: [PATCH] fix(disk_util): don't run blkid on empty partitions --- build_library/disk_util | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build_library/disk_util b/build_library/disk_util index 4fc2024bf2..6616ef5dcc 100755 --- a/build_library/disk_util +++ b/build_library/disk_util @@ -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: