[PATCH] Add --reuse-cmdline

Lombard, David N dnlombar at ichips.intel.com
Tue May 13 14:24:23 EDT 2008

On Mon, May 12, 2008 at 02:43:57PM -0500, Michael Neuling wrote:
> In message <20080512153849.74753e71 at kopernikus.site> you wrote:
> Sorry, I think I was mistaken.  ppc64 only takes the "root=<blah>" from
> the first kernel, provided it's not specified on the kexec command line
> for the next kernel.
> Anyway, the code is in kexec/arch/ppc64/fs2dt.c (search for "root=")

Externally to kexec(8), I copy the console keyword under the same
circumstances, e.g., it has not been explicitly set.

> > > Either way, this should probably be a generic option, not x86 specific.
> > 
> > Well, I thought first of it. But since the '--append' parameter is not
> > generic, this makes no sense.
> > 
> > Maybe it would make sense to change the command line handling in
> > general to be global and not image specific, but first I need to
> > understand how that works on PPC64 ... (and probably others).
> Yeah, the cmdline should be generically and consistently handled rather
> than what we have now.

The problem is that not all boot options are always usable in the next
kernel, in addition to being architecturally specific, it's very
situational.  Having written that, a generic framework could be usable.

David N. Lombard, Intel, Irvine, CA
I do not speak for Intel Corporation; all comments are strictly my own.

More information about the kexec mailing list