[BusyBox] strange problem with BBinit and root=

Geoffrey Espin espin at idiom.com
Wed May 8 18:36:03 UTC 2002


On Wed, May 08, 2002 at 05:06:21PM -0600, Erik Andersen wrote:
> On Wed May 08, 2002 at 02:51:30PM -0700, Joshua J. England wrote:
> > For some reason, when I pass 'root=/dev/ram0', it behaves as if the
> > BB_FEATURE_LINUXRC was turned off.  This wouldn't be such a big deal,
> > but i need to pass init=/bin/bash (for instance) for testing.
> > Any ideas what could be causing this?
> I need to teach busybox how to handle init=foo properly.  Right
> now it just runs busybox init regardless, right?

/bin/bash probably should be /bin/sh or /bin/ash.  But yeah
init=/linuxrc is the only parameter that works for me.

Maybe it has to do with linux/init/main.c stuffing "linuxrc" in
argv[0], no matter what, when linux's CONFIG_BLK_DEV_INITRD is set?

One solution: /linuxrc itself can have /bin/sh early on, so that
when 'sh' exits the rest of /linuxrc is run, finishing with /bin/init.

Geoff
-- 
Geoffrey Espin
espin at idiom.com
--



More information about the busybox mailing list