* [PATCH v2] dracut: quote DRACUT_EXTRA_MODULES/DRIVERS for --add
@ 2026-07-01 6:35 'Rakesh Kumar' via isar-users
0 siblings, 0 replies; 2+ messages in thread
From: 'Rakesh Kumar' via isar-users @ 2026-07-01 6:35 UTC (permalink / raw)
To: isar-users; +Cc: Rakesh Kumar
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.
Fixes: f785cd0 (Add class to generate custom dracut initramfs)
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}"')
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/20260701063504.3110-1-kumar.rakesh%40siemens.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH v2] dracut: quote DRACUT_EXTRA_MODULES/DRIVERS for --add
2026-06-30 11:43 [PATCH] " 'Rakesh Kumar' via isar-users
@ 2026-07-01 6:42 ` 'Rakesh Kumar' via isar-users
0 siblings, 0 replies; 2+ messages in thread
From: 'Rakesh Kumar' via isar-users @ 2026-07-01 6:42 UTC (permalink / raw)
To: isar-users; +Cc: Rakesh Kumar
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.
Fixes: f785cd0 (Add class to generate custom dracut initramfs)
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}"')
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/20260701064238.3211-1-kumar.rakesh%40siemens.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-01 6:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-01 6:35 [PATCH v2] dracut: quote DRACUT_EXTRA_MODULES/DRIVERS for --add 'Rakesh Kumar' via isar-users
-- strict thread matches above, loose matches on Subject: below --
2026-06-30 11:43 [PATCH] " 'Rakesh Kumar' via isar-users
2026-07-01 6:42 ` [PATCH v2] " 'Rakesh Kumar' via isar-users
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox