All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Antonin Godard" <antonin.godard@bootlin.com>
To: "Jimmy Ho" <jimmy.ho@sifive.com>,
	<openembedded-core@lists.openembedded.org>
Cc: "Alexander Kanavin" <alex.kanavin@gmail.com>
Subject: Re: [PATCH] nfsrootfs: disable warning message if bootargs root parameter have not been defined
Date: Tue, 24 Jun 2025 08:54:32 +0200	[thread overview]
Message-ID: <DAUKE93SMD74.1LTP35J1VY8CP@bootlin.com> (raw)
In-Reply-To: <20250624001421.16384-1-jimmy.ho@sifive.com>

Hi,

On Tue Jun 24, 2025 at 2:14 AM CEST, Jimmy Ho wrote:
> we have case that don't define root in bootargs,
> if [ ${bootparam_root} != "/dev/nfs" ] will output warning "/init.d/85-nfsrootfs: line 4: [: !=: unary operator expected"
> let variable expension result become string to solve this problem
>
> Signed-off-by: Jimmy Ho <jimmy.ho@sifive.com>
> Reviewed-by: Antonin Godard <antonin.godard@bootlin.com>

Please don't include Reviewed-by if the person has not explicitely given their
Reviewed-by in response to the previous version of the patch.

> ---
>  meta/recipes-core/initrdscripts/initramfs-framework/nfsrootfs | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/nfsrootfs b/meta/recipes-core/initrdscripts/initramfs-framework/nfsrootfs
> index e67ee4c25d..30555aef55 100644
> --- a/meta/recipes-core/initrdscripts/initramfs-framework/nfsrootfs
> +++ b/meta/recipes-core/initrdscripts/initramfs-framework/nfsrootfs
> @@ -1,7 +1,7 @@
>  #!/bin/sh
>  
>  nfsrootfs_enabled() {
> -	if [ ${bootparam_root} != "/dev/nfs" ] || [ -z ${bootparam_nfsroot} ]; then
> +	if [ "${bootparam_root}" != "/dev/nfs" ] || [ -z ${bootparam_nfsroot} ]; then
>  		return 1
>  	fi
>  	return 0

Please make sure to include vX (version number) in the patch subject when
sending a new version of the patch.

See https://docs.yoctoproject.org/contributor-guide/submit-changes.html.

Antonin

-- 
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



  reply	other threads:[~2025-06-24  6:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-24  0:14 [PATCH] nfsrootfs: disable warning message if bootargs root parameter have not been defined Jimmy Ho
2025-06-24  6:54 ` Antonin Godard [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-06-19  8:29 Jimmy Ho
2025-06-16  7:43 Jimmy Ho

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=DAUKE93SMD74.1LTP35J1VY8CP@bootlin.com \
    --to=antonin.godard@bootlin.com \
    --cc=alex.kanavin@gmail.com \
    --cc=jimmy.ho@sifive.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.