ash acts like init
Yann E. MORIN
yann.morin.1998 at anciens.enib.fr
Sat Mar 28 22:10:14 UTC 2009
Hello Casty and all,
On Saturday 28 March 2009 23:02:34 casty at centolos.com wrote:
> I'm trying to run ash as the init process in the kernel parameters
> (init=/bin/ash). But when I run it, it reads the /etc/inittab. I tried
> rebuilding busybox with init disabled, but the only thing I got was an
> "init: applet not found" error.
> I don't understand the internal process in bb, but it looks like when pid
> is zero, it ignores argv[0] and acts like init yes or yes.
> Is there any way to get ash to act as ash when called directly from the
> kernel?
For some architectures, the kernel has a hard-coded value for its command
line, that can not be overriden. Moreover, 2.6.29 offers this possibility
for all architectures now.
Double-check that this is not the case.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software Designer | \ / CAMPAIGN | ___ |
| --==< ^_^ >==-- `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
`------------------------------^-------^------------------^--------------------'
More information about the busybox
mailing list