]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Add rdinit parameter to pick early userspace init
authorOlof Johansson <olof@lixom.net>
Tue, 6 Sep 2005 22:17:19 +0000 (15:17 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 7 Sep 2005 23:57:28 +0000 (16:57 -0700)
commit7ffbe0570585809ae96331832d5f8918e05b06d9
tree2503b81230c5b3ad0ff3926e1388267338fe24b8
parentb17301c5d4e7250b8257b92f2c9a7a95cfbb9d2f
[PATCH] Add rdinit parameter to pick early userspace init

Since early userspace was added, there's no way to override which init to
run from it.  Some people tack on an extra cpio archive with a link from
/init depending on what they want to run, but that's sometimes impractical.

Changing the "init=" to also override the early userspace isn't feasible,
since it is still used to indicate what init to run from disk when early
userspace has completed doing whatever it's doing (i.e.  load filesystem
modules and drivers).

Instead, introduce "rdinit=" and make it override the default "/init" if
specified.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Documentation/kernel-parameters.txt
init/main.c