summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/utils/partitionedfs.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic/utils/partitionedfs.py')
-rw-r--r--scripts/lib/wic/utils/partitionedfs.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py
index eb4d7e6a51..5fc5765d65 100644
--- a/scripts/lib/wic/utils/partitionedfs.py
+++ b/scripts/lib/wic/utils/partitionedfs.py
@@ -21,7 +21,7 @@
21import os 21import os
22from wic import msger 22from wic import msger
23from wic.utils.errors import ImageError 23from wic.utils.errors import ImageError
24from wic.utils.misc import exec_cmd, exec_native_cmd 24from wic.utils.misc import exec_native_cmd
25from wic.filemap import sparse_copy 25from wic.filemap import sparse_copy
26 26
27# Overhead of the MBR partitioning scheme (just one sector) 27# Overhead of the MBR partitioning scheme (just one sector)
@@ -350,10 +350,9 @@ class Image():
350 if self.disks: 350 if self.disks:
351 for dev in self.disks: 351 for dev in self.disks:
352 disk = self.disks[dev] 352 disk = self.disks[dev]
353 try: 353 if hasattr(disk['disk'], 'cleanup'):
354 disk['disk'].cleanup() 354 disk['disk'].cleanup()
355 except: 355
356 pass
357 # remove partition images 356 # remove partition images
358 for image in self.partimages: 357 for image in self.partimages:
359 if os.path.isfile(image): 358 if os.path.isfile(image):