From: Ed Bartosh <ed.bartosh@linux.intel.com>
To: Jukka Laitinen <jukka.laitinen@intel.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] wic: partitionedfs: set partition name for gpt partitions
Date: Thu, 26 Jan 2017 14:47:01 +0200 [thread overview]
Message-ID: <20170126124701.GA28320@linux.intel.com> (raw)
In-Reply-To: <1485445413-10553-1-git-send-email-jukka.laitinen@intel.com>
Hi Jukka,
On Thu, Jan 26, 2017 at 05:43:33PM +0200, Jukka Laitinen wrote:
> 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'" % \
Thank you for the patch!
+1
--
Regards,
Ed
prev parent reply other threads:[~2017-01-26 13:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-26 15:43 [PATCH] wic: partitionedfs: set partition name for gpt partitions Jukka Laitinen
2017-01-26 12:47 ` Ed Bartosh [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170126124701.GA28320@linux.intel.com \
--to=ed.bartosh@linux.intel.com \
--cc=jukka.laitinen@intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.