Re: pivot_root & linuxrc problem

Russell King
2001-03-15T22:43:06Z

On Thu, Mar 15, 2001 at 10:11:55PM +0100, Mike Galbraith wrote:
> On Thu, 15 Mar 2001, Art Boulatov wrote:
>
> > How can I "exec /sbin/init" from "/linuxrc", whatever it is,
> > if "linuxrc" does not get PID=1?
> >
> > Actually, why does NOT "linuxrc" get PID=1?
>
> That's the question.. the first task started gets pid=1, and when
> that is true, exec /sbin/init has no problem. What else is your
> system starting?.. it must be starting something.

Linux always forks from PID1 before executing /linuxrc automagically.
Check init/main.c.

--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux