[BusyBox] how to get "reboot" to work when using "minit"??
Robert P. J. Day
rpjday at mindspring.com
Tue May 4 14:59:56 UTC 2004
On Tue, 4 May 2004, Gyepi SAM wrote:
> On Tue, May 04, 2004 at 05:52:54AM -0400, Robert P. J. Day wrote:
> > > It appears to me that the code is not optimal: CONFIG_FEATURE_INITRD
> > > should be disregarded and when a process named 'init' or 'linuxrc'
> > > cannot be found, it should be safe to assume that whatever process has
> > > pid == 1 *is* init and should be killed.
> >
> > is there any reason that you shouldn't just go after the process with
> > PID 1 in the first place, regardless of its name? wouldn't that always
> > be the init-like process no matter what?
>
> Because init does not always have PID == 1!
> Quoting Erik Andersen from 2001 [1]:
>
> When the kernel runs an initrd, the init process is still sleeping in kernel space, and the process
> executing user space stuff is just another kernel thread, and <em>will not be
> pid 1</em>.
ok, i stand corrected. in any event, it remains to figure out how to
properly handle a reboot if a system has both an init and a minit as boot
choices.
rday
More information about the busybox
mailing list