summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJukka Laitinen <jukka.laitinen@intel.com>2017-01-26 17:43:33 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-31 14:38:32 +0000
commitcebf67086f6818ec1b20452f324f8c9da08ada43 (patch)
tree732a342b30d523685f5fb050cb89b336ec762c3a
parentc01cc6ff241b4a808af8773970a9abe27ae4093e (diff)
downloadpoky-cebf67086f6818ec1b20452f324f8c9da08ada43.tar.gz
wic: partitionedfs: set partition name for gpt partitions
Set proper gpt partition name for the partitions in case given in the configuration (From OE-Core rev: bc6e6a34f35bd081d828160bab8ee12e770c7e1e) Signed-off-by: Jukka Laitinen <jukka.laitinen@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--scripts/lib/wic/utils/partitionedfs.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py
index 721d514326..ed67b9ace7 100644
--- a/scripts/lib/wic/utils/partitionedfs.py
+++ b/scripts/lib/wic/utils/partitionedfs.py
@@ -316,6 +316,13 @@ class Image():
316 (part['num'], part['uuid'], disk['disk'].device), 316 (part['num'], part['uuid'], disk['disk'].device),
317 self.native_sysroot) 317 self.native_sysroot)
318 318
319 if part['label'] and disk['ptable_format'] == "gpt":
320 msger.debug("partition %d: set name to %s" % \
321 (part['num'], part['label']))
322 exec_native_cmd("parted -s %s name %d %s" % \
323 (disk['disk'].device, part['num'], part['label']),
324 self.native_sysroot)
325
319 if part['boot']: 326 if part['boot']:
320 flag_name = "legacy_boot" if disk['ptable_format'] == 'gpt' else "boot" 327 flag_name = "legacy_boot" if disk['ptable_format'] == 'gpt' else "boot"
321 msger.debug("Set '%s' flag for partition '%s' on disk '%s'" % \ 328 msger.debug("Set '%s' flag for partition '%s' on disk '%s'" % \