[oe-commits] Ed Bartosh : wic: check if part_type is set only for msdos partition table
git at git.openembedded.org
git at git.openembedded.org
Thu Jun 11 23:00:46 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: 52dcccbead0c57d1a3f4afd2f9c7a38a985301ec
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=52dcccbead0c57d1a3f4afd2f9c7a38a985301ec
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
Date: Tue Jun 2 17:02:00 2015 +0300
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 at linux.intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
scripts/lib/wic/utils/partitionedfs.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py
index 06d4eac..eacf267 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.
More information about the Openembedded-commits
mailing list