calling busybox shell using kernel args

Rob Landley rob at landley.net
Mon Sep 26 14:06:27 UTC 2005


On Monday 26 September 2005 05:49, Johann Ammerlahn wrote:
> Through a particularly clever rsync maneuver, I've managed to move the
> busybox executable from /bin/ to /bin/.temp/.  All my busybox and init path
> settings still point to /bin, however.
>
> Unsurprisingly, this causes a kernel panic on boot as all my symbolic links
> back to the busybox executable are broken.  Since I have no other shell on
> my embedded system, I've been trying to figure out how to pass the busybox
> shell to the kernel using the init= boot argument.
>
> Any ideas?  Other ways to start a shell?

init=/bin/.temp/busybox sh

In theory, unrecognized arguments that aren't of the form "name=value" get 
passed through as command line arguments to init.

Rob



More information about the busybox mailing list