trouble with init in EABI toolchain

Mike Frysinger vapier at gentoo.org
Wed May 9 23:06:39 UTC 2007


On Wednesday 09 May 2007, Denis Vlasenko wrote:
> It means "init=/bin/busybox" "sh". sh is not going into value
> of init, it becomes another kernel prarmeter!

not really ... the kernel is actually pretty smart ... it will do a proper 
exec /bin/busybox sh

this can actually be useful ... ive recovered systems with a broken /dev 
before by doing:
panic=3 init=/bin/rm -rf /dev
panic=3 init=/bin/mkdir /dev
panic=3 init=/bin/mknod /dev/console c 5 1
panic=3 init=/bin/sh
it takes many reboots, but it works :)
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070509/799c469b/attachment-0002.pgp 


More information about the busybox mailing list