* Kernel eats argument=
@ 2005-06-17 14:36 Nico Schottelius
2005-06-17 14:42 ` Jan-Benedict Glaw
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Nico Schottelius @ 2005-06-17 14:36 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 646 bytes --]
Hello!
I wanted to have 'cprofile=a_profile" specified to my init
system. Now after some hours of debugging I see that
everything that is in the form of
bla=blub
is eaten by the kernel and _not_ given to init.
Is that how it should be or is that a bug?
If it's how it should be, I'll switch to "cprofile:a_profile"
or will Linux eat that, too?
The most mysterious thing (for me) is that /proc/cmdline
contains that stuff again.
Nico, somehow confused
--
Keep it simple & stupid, use what's available.
Please use pgp encryption: 8D0E 27A4 is my id.
http://nico.schotteli.us | http://linux.schottelius.org
[-- Attachment #2: Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Kernel eats argument=
2005-06-17 14:36 Kernel eats argument= Nico Schottelius
@ 2005-06-17 14:42 ` Jan-Benedict Glaw
2005-06-17 14:44 ` Nico Schottelius
2005-06-17 15:01 ` Richard B. Johnson
2 siblings, 0 replies; 4+ messages in thread
From: Jan-Benedict Glaw @ 2005-06-17 14:42 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1034 bytes --]
On Fri, 2005-06-17 16:36:42 +0200, Nico Schottelius <nico-kernel@schottelius.org> wrote:
> I wanted to have 'cprofile=a_profile" specified to my init
> system. Now after some hours of debugging I see that
> everything that is in the form of
>
> bla=blub
>
> is eaten by the kernel and _not_ given to init.
> Is that how it should be or is that a bug?
Well, everything the kernel doesn't understand as a parameter (eg. for
modules) actually *is* passed to init, but not as command-line
arguments, but as environment variables. You'll probably find that :-)
MfG, JBG
PS: Not including sender's email address in Cc because I'm too lame to
ACK my email for his email system...
--
Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 _ O _
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O
fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Kernel eats argument=
2005-06-17 14:36 Kernel eats argument= Nico Schottelius
2005-06-17 14:42 ` Jan-Benedict Glaw
@ 2005-06-17 14:44 ` Nico Schottelius
2005-06-17 15:01 ` Richard B. Johnson
2 siblings, 0 replies; 4+ messages in thread
From: Nico Schottelius @ 2005-06-17 14:44 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 330 bytes --]
> [Does the kernel eat arguments?]
Found the answer myself:
init/main.c:
/*
* Unknown boot options get handed to init, unless they look like
* failed parameters
*/
static int __init unknown_bootoption(char *param, char *val)
Yes, it does and I'll have to use a different string.
Have a nice day,
Nico
[-- Attachment #2: Type: application/pgp-signature, Size: 827 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Kernel eats argument=
2005-06-17 14:36 Kernel eats argument= Nico Schottelius
2005-06-17 14:42 ` Jan-Benedict Glaw
2005-06-17 14:44 ` Nico Schottelius
@ 2005-06-17 15:01 ` Richard B. Johnson
2 siblings, 0 replies; 4+ messages in thread
From: Richard B. Johnson @ 2005-06-17 15:01 UTC (permalink / raw)
To: Nico Schottelius; +Cc: linux-kernel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed, Size: 974 bytes --]
On Fri, 17 Jun 2005, Nico Schottelius wrote:
> Hello!
>
> I wanted to have 'cprofile=a_profile" specified to my init
> system. Now after some hours of debugging I see that
> everything that is in the form of
>
> bla=blub
>
> is eaten by the kernel and _not_ given to init.
> Is that how it should be or is that a bug?
>
> If it's how it should be, I'll switch to "cprofile:a_profile"
> or will Linux eat that, too?
>
> The most mysterious thing (for me) is that /proc/cmdline
> contains that stuff again.
>
>
> Nico, somehow confused
Init gets a single parameter 'auto'. Variables not understood
by the kernel get put into the environment....
\0OME=/\0TERM=linux\0SELINUX_INIT=YES\0
|
|______ maybe a bug, no "H".
Cheers,
Dick Johnson
Penguin : Linux version 2.6.11.9 on an i686 machine (5537.79 BogoMips).
Notice : All mail here is now cached for review by Dictator Bush.
98.36% of all statistics are fiction.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-06-17 15:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-17 14:36 Kernel eats argument= Nico Schottelius
2005-06-17 14:42 ` Jan-Benedict Glaw
2005-06-17 14:44 ` Nico Schottelius
2005-06-17 15:01 ` Richard B. Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®