diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-10-06 13:33:35 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-10-07 16:43:50 +0100 |
commit | 0c1804821917d6d3a062ca19b63667d030138f21 (patch) | |
tree | ded624cc3a7c1ecbaffbb1092f9c78fcf27e99d4 /scripts | |
parent | b90d68fda3d14b4d19b7ffcb5b80ed28563a616d (diff) | |
download | openembedded-core-0c1804821917d6d3a062ca19b63667d030138f21.tar.gz openembedded-core-0c1804821917d6d3a062ca19b63667d030138f21.tar.bz2 openembedded-core-0c1804821917d6d3a062ca19b63667d030138f21.zip |
wic: set PARTUUID only for gpt partition table
sgdisk fails to set PARTUUID for msdos partitions as it's only
supported for GPT partitions.
Checked partition table format to run sgdisk --partition-guid
only for GPT partitions.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-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 cafb9338df..8d93a68e3a 100644 --- a/scripts/lib/wic/utils/partitionedfs.py +++ b/scripts/lib/wic/utils/partitionedfs.py @@ -299,7 +299,7 @@ class Image(): (part['num'], part['part_type'], disk['disk'].device), self.native_sysroot) - if part['uuid']: + if part['uuid'] and disk['ptable_format'] == "gpt": msger.debug("partition %d: set UUID to %s" % \ (part['num'], part['uuid'])) exec_native_cmd("sgdisk --partition-guid=%d:%s %s" % \ |