diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/wic/utils/partitionedfs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py index 06d4eac0e5..eacf2679d2 100644 --- a/scripts/lib/wic/utils/partitionedfs.py +++ b/scripts/lib/wic/utils/partitionedfs.py | |||
@@ -138,7 +138,7 @@ class Image: | |||
138 | raise ImageError("No disk %s for partition %s" \ | 138 | raise ImageError("No disk %s for partition %s" \ |
139 | % (p['disk_name'], p['mountpoint'])) | 139 | % (p['disk_name'], p['mountpoint'])) |
140 | 140 | ||
141 | if p['part_type']: | 141 | if ptable_format == 'msdos' and p['part_type']: |
142 | # The --part-type can also be implemented for MBR partitions, | 142 | # The --part-type can also be implemented for MBR partitions, |
143 | # in which case it would map to the 1-byte "partition type" | 143 | # in which case it would map to the 1-byte "partition type" |
144 | # filed at offset 3 of the partition entry. | 144 | # filed at offset 3 of the partition entry. |