Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] wic: partitionedfs: set partition name for gpt partitions
@ 2017-01-26 15:43 Jukka Laitinen
  2017-01-26 12:47 ` Ed Bartosh
  0 siblings, 1 reply; 2+ messages in thread
From: Jukka Laitinen @ 2017-01-26 15:43 UTC (permalink / raw)
  To: openembedded-core

Set proper gpt partition name for the partitions in case given
in the configuration

Signed-off-by: Jukka Laitinen <jukka.laitinen@intel.com>
---
 scripts/lib/wic/utils/partitionedfs.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py
index 721d514..ed67b9a 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'" % \
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-26 13:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-26 15:43 [PATCH] wic: partitionedfs: set partition name for gpt partitions Jukka Laitinen
2017-01-26 12:47 ` Ed Bartosh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox