From: "'MOESSBAUER, Felix' via isar-users" <isar-users@googlegroups.com>
To: "Kumar, Rakesh" <kumar.rakesh@siemens.com>,
"isar-users@googlegroups.com" <isar-users@googlegroups.com>
Cc: "Gylstorff, Quirin" <quirin.gylstorff@siemens.com>
Subject: Re: [PATCH] dracut: quote DRACUT_EXTRA_MODULES/DRIVERS for --add
Date: Tue, 30 Jun 2026 11:50:00 +0000 [thread overview]
Message-ID: <e476705159572054515bfee28cdfac2f27441ef5.camel@siemens.com> (raw)
In-Reply-To: <20260630114346.14229-1-kumar.rakesh@siemens.com>
On Tue, 2026-06-30 at 07:43 -0400, 'Rakesh Kumar' via isar-users wrote:
> extend_dracut_cmdline() joined multiple modules/drivers into the
> --add / --add-drivers arguments without quoting. With more than one
> entry the shell split the list, so dracut consumed only the first
> module and treated the rest as positional arguments (the output image
> path), breaking initramfs generation. Quote the lists so they are
> passed as a single argument.
+ CC Quirin
Hi, good catch, but please also add a fixes tag.
>
> Signed-off-by: Rakesh Kumar <kumar.rakesh@siemens.com>
> ---
> meta/classes-recipe/initrd-dracut.bbclass | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/classes-recipe/initrd-dracut.bbclass b/meta/classes-recipe/initrd-dracut.bbclass
> index bb4b50b7..542b1fbe 100644
> --- a/meta/classes-recipe/initrd-dracut.bbclass
> +++ b/meta/classes-recipe/initrd-dracut.bbclass
> @@ -48,9 +48,9 @@ def extend_dracut_cmdline(d):
> if config_path:
> cmdline.append(f"--conf {config_path}")
> if extra_drivers:
> - cmdline.append(f"--add-drivers {extra_drivers}")
> + cmdline.append(f'--add-drivers "{extra_drivers}"')
Nit: Wouldn't it be better to use single quotes around {extra_drivers}
to ensure shell variables are not expanded within the quote?
Felix
> if extra_modules:
> - cmdline.append(f"--add {extra_modules}")
> + cmdline.append(f'--add "{extra_modules}"')
> return ' '.join(cmdline)
>
> ROOTFS_INITRAMFS_GENERATOR_CMDLINE:append = " ${@ extend_dracut_cmdline(d)}"
> --
> 2.39.5
>
> --
> You received this message because you are subscribed to the Google Groups "isar-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/isar-users/20260630114346.14229-1-kumar.rakesh%40siemens.com.
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/e476705159572054515bfee28cdfac2f27441ef5.camel%40siemens.com.
next prev parent reply other threads:[~2026-06-30 11:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-30 11:43 'Rakesh Kumar' via isar-users
2026-06-30 11:50 ` 'MOESSBAUER, Felix' via isar-users [this message]
2026-06-30 13:48 ` 'Quirin Gylstorff' via isar-users
2026-06-30 14:36 ` 'Kumar, Rakesh' via isar-users
2026-06-30 15:10 ` 'MOESSBAUER, Felix' via isar-users
2026-07-01 6:42 ` [PATCH v2] " 'Rakesh Kumar' via isar-users
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=e476705159572054515bfee28cdfac2f27441ef5.camel@siemens.com \
--to=isar-users@googlegroups.com \
--cc=felix.moessbauer@siemens.com \
--cc=kumar.rakesh@siemens.com \
--cc=quirin.gylstorff@siemens.com \
/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