From: Ed Bartosh Date: Thu, 6 Oct 2016 10:33:35 +0000 (+0300) Subject: wic: set PARTUUID only for gpt partition table X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~23920 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c1804821917d6d3a062ca19b63667d030138f21;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py index cafb9338df1..8d93a68e3a4 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" % \