1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-31 12:49:46 +00:00

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.

(From OE-Core rev: 0c1804821917d6d3a062ca19b63667d030138f21)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ed Bartosh
2016-10-06 13:33:35 +03:00
committed by Richard Purdie
parent 1ddd23c542
commit e8ce5083c5
+1 -1
View File
@@ -299,7 +299,7 @@ class Image():
(part['num'], part['part_type'], (part['num'], part['part_type'],
disk['disk'].device), self.native_sysroot) 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" % \ msger.debug("partition %d: set UUID to %s" % \
(part['num'], part['uuid'])) (part['num'], part['uuid']))
exec_native_cmd("sgdisk --partition-guid=%d:%s %s" % \ exec_native_cmd("sgdisk --partition-guid=%d:%s %s" % \