[BusyBox] Rebooting the system?
Scott Murray
scottm at somanetworks.com
Tue Nov 19 08:35:03 UTC 2002
On Tue, 19 Nov 2002, Steven Scholz wrote:
>
>
> Jean Wolter wrote:
> >
> > Michael Boman <michael.boman at securecirt.com> writes:
> >
> > > I am trying to get BusyBox's 'reboot' command just to plainly reboot the
> > > system (very much as the small button on the front panel does). I have
> > > a small /bin/ash script that does a custom hands-off installation of
> > > Linux and I would like it to just reboot the system once done. Everytime
> > > I try to execute the reboot command I get "Kernel panic: Attempted to
> > > kill init!". Could anyone give me a clue about this matter?
> >
> > Busybox reboot doesn't work. This was reported at least twice and you
> > can find an explanation for the kernel panic in
> > http://www.busybox.net/lists/busybox/2002-October/012385.html.
> >
>
> I am using busybox with linuxppc-2.4.19 on a powerpc MPC855T and reboot work's
> fine.
> The reason seems to be that there are plattform specific versions of
> machine_halt() and machine_restart()...
I suspect you're using the BusyBox init. If you have the init applet
turned on, everything works fine, since it has code to catch the signals
sent by the reboot, halt, and poweroff applets and call the reboot system
call with the appropiate argument. If you have the init applet turned
off, you see the reported behaviour. I posted a patch against the stable
branch that fixes this a while back:
http://www.busybox.net/lists/busybox/2001-November/010407.html
I'll try to find time this week to port this to unstable.
Scott
--
Scott Murray
SOMA Networks, Inc.
Toronto, Ontario
e-mail: scottm at somanetworks.com
More information about the busybox
mailing list