From: Tom Zanussi <tom.zanussi@intel.com>
To: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Cc: Maciek Borzecki <maciek.borzecki@gmail.com>,
openembedded-core@lists.openembedded.org
Subject: Re: [OE-code][PATCH] wic: include partition label in fs image file name
Date: Mon, 21 Jul 2014 16:23:42 -0500 [thread overview]
Message-ID: <1405977822.3067.26.camel@empanada> (raw)
In-Reply-To: <1405940517-30651-1-git-send-email-maciej.borzecki@open-rnd.pl>
On Mon, 2014-07-21 at 13:01 +0200, Maciej Borzecki wrote:
> Not including the label image but having multiple partitions of the same
> type, the image file of one partition would overwrite the other.
>
Right, the empty-partition case somehow missed the label - good catch.
Acked-by: Tom Zanussi <tom.zanussi@linux.intel.com>
> Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
> Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
> ---
> scripts/lib/mic/kickstart/custom_commands/partition.py | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/scripts/lib/mic/kickstart/custom_commands/partition.py b/scripts/lib/mic/kickstart/custom_commands/partition.py
> index 06f29a9..d0f1b78 100644
> --- a/scripts/lib/mic/kickstart/custom_commands/partition.py
> +++ b/scripts/lib/mic/kickstart/custom_commands/partition.py
> @@ -343,7 +343,7 @@ class Wic_PartData(Mic_PartData):
> """
> Prepare an empty ext2/3/4 partition.
> """
> - fs = "%s/fs.%s" % (cr_workdir, self.fstype)
> + fs = "%s/fs_%s.%s" % (cr_workdir, self.label, self.fstype)
>
> dd_cmd = "dd if=/dev/zero of=%s bs=1M seek=%d count=0" % \
> (fs, self.size)
> @@ -363,7 +363,7 @@ class Wic_PartData(Mic_PartData):
> """
> Prepare an empty btrfs partition.
> """
> - fs = "%s/fs.%s" % (cr_workdir, self.fstype)
> + fs = "%s/fs_%s.%s" % (cr_workdir, self.label, self.fstype)
>
> dd_cmd = "dd if=/dev/zero of=%s bs=1M seek=%d count=0" % \
> (fs, self.size)
> @@ -384,7 +384,7 @@ class Wic_PartData(Mic_PartData):
> """
> Prepare an empty vfat partition.
> """
> - fs = "%s/fs.%s" % (cr_workdir, self.fstype)
> + fs = "%s/fs_%s.%s" % (cr_workdir, self.label, self.fstype)
>
> blocks = self.size * 1024
>
next prev parent reply other threads:[~2014-07-21 21:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-21 11:01 [OE-code][PATCH] wic: include partition label in fs image file name Maciej Borzecki
2014-07-21 21:23 ` Tom Zanussi [this message]
2014-08-11 14:17 ` Maciek Borzecki
-- strict thread matches above, loose matches on Subject: below --
2014-07-27 19:01 Maciek Borzecki
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=1405977822.3067.26.camel@empanada \
--to=tom.zanussi@intel.com \
--cc=maciej.borzecki@open-rnd.pl \
--cc=maciek.borzecki@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox