summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-06-02 17:02:00 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-11 23:59:10 +0100
commitb7b3e4642c021a98463444a532eaae600a415244 (patch)
treeab49c30e5b0786ec7cd155bcbecd30ae474f3e69 /scripts
parent0a13707513e3a4945dcbb09843fa959ebca240ee (diff)
downloadpoky-b7b3e4642c021a98463444a532eaae600a415244.tar.gz
wic: check if part_type is set only for msdos partition table
Specifying partition type(GUID) makes sense for gpt partition table. Current code checks if part-type is specified and throws exception if it is. This makes sense to do only for msdos partition table. (From OE-Core rev: 52dcccbead0c57d1a3f4afd2f9c7a38a985301ec) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/utils/partitionedfs.py2
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.