]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: add system_id argument to Image.add_partition
authorEd Bartosh <ed.bartosh@linux.intel.com>
Fri, 22 Apr 2016 09:32:02 +0000 (12:32 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 29 Apr 2016 06:53:57 +0000 (07:53 +0100)
Added new argument to add_partition call to pass partition
system id down the stack.

[YOCTO #9096]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/wic/imager/direct.py
scripts/lib/wic/utils/partitionedfs.py

index a1b424965173146a1ae555a6fbd060ef67733f6f..1937042e1aabf0d38b8ba5fb1c2eab026ed7a159 100644 (file)
@@ -267,7 +267,8 @@ class DirectImageCreator(BaseImageCreator):
                                        align=part.align,
                                        no_table=part.no_table,
                                        part_type=part.part_type,
-                                       uuid=part.uuid)
+                                       uuid=part.uuid,
+                                       system_id=part.system_id)
 
         if fstab_path:
             shutil.move(fstab_path + ".orig", fstab_path)
index ad596d26f2c3c07e0d475bab1dbbbfd65e4dc65b..9da4a7f2b4abc51a223d89fd236246f33fc8bf15 100644 (file)
@@ -87,7 +87,7 @@ class Image(object):
 
     def add_partition(self, size, disk_name, mountpoint, source_file=None, fstype=None,
                       label=None, fsopts=None, boot=False, align=None, no_table=False,
-                      part_type=None, uuid=None):
+                      part_type=None, uuid=None, system_id=None):
         """ Add the next partition. Prtitions have to be added in the
         first-to-last order. """