mirror of
https://git.yoctoproject.org/poky
synced 2026-03-06 15:29:40 +01: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:
committed by
Richard Purdie
parent
1ddd23c542
commit
e8ce5083c5
@@ -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" % \
|
||||
|
||||
Reference in New Issue
Block a user