summaryrefslogtreecommitdiff
path: root/scripts/lib/wic/utils
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:13:28 +0000
commitbc6e6a34f35bd081d828160bab8ee12e770c7e1e (patch)
treeb1c641e3faaf758e1db2cbe5948fd7f1c4468c3c /scripts/lib/wic/utils
parent94245144f5cef344d90bc2a7b3267cdae9d192e4 (diff)
downloadopenembedded-core-bc6e6a34f35bd081d828160bab8ee12e770c7e1e.tar.gz
openembedded-core-bc6e6a34f35bd081d828160bab8ee12e770c7e1e.tar.bz2
openembedded-core-bc6e6a34f35bd081d828160bab8ee12e770c7e1e.zip
wic: partitionedfs: set partition name for gpt partitions
Set proper gpt partition name for the partitions in case given in the configuration Signed-off-by: Jukka Laitinen <jukka.laitinen@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib/wic/utils')
-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():
(part['num'], part['uuid'], disk['disk'].device),
self.native_sysroot)
+ if part['label'] and disk['ptable_format'] == "gpt":
+ msger.debug("partition %d: set name to %s" % \
+ (part['num'], part['label']))
+ exec_native_cmd("parted -s %s name %d %s" % \
+ (disk['disk'].device, part['num'], part['label']),
+ self.native_sysroot)
+
if part['boot']:
flag_name = "legacy_boot" if disk['ptable_format'] == 'gpt' else "boot"
msger.debug("Set '%s' flag for partition '%s' on disk '%s'" % \