From: Tom Rini <trini@konsulko.com>
To: Kevin Hao <kexin.hao@windriver.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] wic: Introduce the --use-label partition parameter
Date: Thu, 6 Sep 2018 09:27:39 -0400 [thread overview]
Message-ID: <20180906132739.GR26633@bill-the-cat> (raw)
In-Reply-To: <20180906131120.87405-1-kexin.hao@windriver.com>
[-- Attachment #1: Type: text/plain, Size: 2154 bytes --]
On Thu, Sep 06, 2018 at 09:11:20PM +0800, Kevin Hao wrote:
> We can use this parameter to make the wic use the label to name a
> partition in /etc/fstab.
>
> Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
A few minor things below:
[snip]
> @@ -945,6 +945,14 @@ DESCRIPTION
> label is already in use by another filesystem,
> a new label is created for the partition.
>
> + --use-label: This option is specific to wic. It makes wic to use the
> + label in /etc/fstab to specify a partition. If the
> + --use-label and --use-uuid are used at the same time,
> + we prefer the uuid because it is less likely to cause
> + name confliction. We don't support to use this parameter
> + on a root partition since the kernel can't understand the
> + LABEL syntax.
I think we should have the last sentence read more like:
We don't support using this parameter on the root partition since it
requires an initramfs to parse this value and we do not currently
support that.
Only because while what you said is correct, this makes it clear what
would be needed to support it.
> @@ -197,10 +198,14 @@ class KickStart():
> (confpath, lineno, err))
> if line.startswith('part'):
> # SquashFS does not support UUID
> - if parsed.fstype == 'squashfs' and parsed.use_uuid:
> + if parsed.fstype == 'squashfs' and (parsed.use_uuid or parsed.use_label):
> err = "%s:%d: SquashFS does not support UUID" \
> % (confpath, lineno)
> raise KickStartError(err)
This hunk is going to conflict with Emmanuel's patch. Further I think
it should be a separate check on fstype == squashfs and (label &&
use_label) with a label-specific error message. Thanks!
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2018-09-06 13:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-06 13:11 [PATCH] wic: Introduce the --use-label partition parameter Kevin Hao
2018-09-06 13:27 ` Tom Rini [this message]
2018-09-06 13:57 ` Kevin Hao
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=20180906132739.GR26633@bill-the-cat \
--to=trini@konsulko.com \
--cc=kexin.hao@windriver.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