[BusyBox] Reboot not working?
Adam Slattery
aslattery at sunriselinux.com
Thu Nov 8 13:11:03 UTC 2001
On Thu, 8 Nov 2001, Scott Murray wrote:
> On Thu, 8 Nov 2001, Boris wrote:
>
> > I should mention that im running init=/linuxrc rw. All off a ramdisk.
> > ----- Original Message -----
> > From: Boris
> > To: busybox at busybox.net
> > Sent: Thursday, November 08, 2001 12:47 PM
> > Subject: [BusyBox] Reboot not working?
> >
> >
> > I just downloaded the latest CVS of busybox and I can't seem to get
> > the reboot applet to actually "reboot" my pc.Each time I run reboot it
> > just comes back to the command line. Any ideas?
>
> The reboot/halt applets in busybox normally rely on the init applet being
> turned on, as they just send a signal to it to trigger the reboot/halt.
> I'm attaching the patch I use against 0.60.1 to make reboot/halt call the
> syscall directly if the init applet is turned off.
Actually, this is the proper way :). reboot/halt/poweroff should always
call the syscall, not init. When init calls it, the kernel thinks init is
exiting and thus generates a kernel panic.
- Adam Slattery
More information about the busybox
mailing list