diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-06-02 17:02:00 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-11 23:55:37 +0100 |
commit | 52dcccbead0c57d1a3f4afd2f9c7a38a985301ec (patch) | |
tree | b37fb2897266a38f8616593a48da2f3b370b6657 /scripts/lib/wic | |
parent | 3ec5e2892c5ee312c44f4425096450a1914ce44a (diff) | |
download | openembedded-core-52dcccbead0c57d1a3f4afd2f9c7a38a985301ec.tar.gz openembedded-core-52dcccbead0c57d1a3f4afd2f9c7a38a985301ec.tar.bz2 openembedded-core-52dcccbead0c57d1a3f4afd2f9c7a38a985301ec.zip |
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.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib/wic')
-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: raise ImageError("No disk %s for partition %s" \ % (p['disk_name'], p['mountpoint'])) - if p['part_type']: + if ptable_format == 'msdos' and p['part_type']: # The --part-type can also be implemented for MBR partitions, # in which case it would map to the 1-byte "partition type" # filed at offset 3 of the partition entry. |