On Tue, Aug 01, 2006 at 12:17:00AM +0200, Andi Kleen wrote:On Monday 31 July 2006 22:41, H. Peter Anvin wrote:Andi Kleen wrote:Is that boot loader common? What's its name? If not I would prefer that he keeps the one liner patch to dealIn the i386 thread, Matt described having a firmware bootloader which passes bogus parameters. For that case, it would make sense to have a non-default CONFIG option to have override rather than conjoined (and I maintain that the built-in command line should be prepended.)+#ifdef CONFIG_CMDLINE_BOOLI think I would prefer a strcat.
+ strlcpy(saved_command_line, CONFIG_CMDLINE, COMMAND_LINE_SIZE);
+#endif
Also you should describe the exact behaviour (override/append) in Kconfig help.
with that private.
For generic semantics strcat (or possible prepend) is probably better.
No, it doesn't work for numerous kernel options that can't be negated.