[BusyBox] Rebooting the system?

Michael Boman michael.boman at securecirt.com
Tue Nov 19 18:33:03 UTC 2002


On Tue, Nov 19, 2002 at 10:34:34AM -0500, Scott Murray wrote:
> 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

No, I am not running any init at all. What I do is to pass
'init=/install.sh' to my boatloader. Anyway, I 'solved' it by grabbing
the halt command, symlinking it to reboot, from the sysVinit package. Not
a very clean solution, but it works. ;)

Best regards
 Michael Boman

-- 
Michael Boman
Security Architect, SecureCiRT (A SBU of Z-Vance Pte Ltd)
http://www.securecirt.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20021119/24556477/attachment.pgp 


More information about the busybox mailing list