diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-04-22 12:32:03 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-29 07:53:57 +0100 |
commit | a1f7f7e61fd20fb6319825648930f7b6aa0e0cee (patch) | |
tree | 451d8f6d1cbe5409ea653f707d846541009b50f0 | |
parent | f2733df697192c0010c17b7bbb02f8679cb8f313 (diff) | |
download | openembedded-core-a1f7f7e61fd20fb6319825648930f7b6aa0e0cee.tar.gz openembedded-core-a1f7f7e61fd20fb6319825648930f7b6aa0e0cee.tar.bz2 openembedded-core-a1f7f7e61fd20fb6319825648930f7b6aa0e0cee.zip |
wic: set partition system id
Used sfdisk to set partition system id if --system-id parameter
is used for a partition in wks file.
[YOCTO #9096]
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r-- | scripts/lib/wic/utils/partitionedfs.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py index 9da4a7f2b4..4170ec1918 100644 --- a/scripts/lib/wic/utils/partitionedfs.py +++ b/scripts/lib/wic/utils/partitionedfs.py @@ -110,7 +110,8 @@ class Image(object): 'align': align, # Partition alignment 'no_table' : no_table, # Partition does not appear in partition table 'part_type' : part_type, # Partition type - 'uuid': uuid} # Partition UUID + 'uuid': uuid, # Partition UUID + 'system_id': system_id} # Partition system id self.__add_partition(part) @@ -310,6 +311,10 @@ class Image(object): exec_native_cmd("parted -s %s set %d %s on" % \ (disk['disk'].device, part['num'], flag_name), self.native_sysroot) + if part['system_id']: + exec_native_cmd("sfdisk --part-type %s %s %s" % \ + (disk['disk'].device, part['num'], part['system_id']), + self.native_sysroot) # Parted defaults to enabling the lba flag for fat16 partitions, # which causes compatibility issues with some firmware (and really |