lkml.org 
[lkml]   [1997]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: /linuxrc starts as PID 4???
Date
In linux.dev.kernel, article <Pine.SOL.3.91.970318114554.9002A-100000@fan1.fan.nb.ca>,
William Burrow <aa126@fan.nb.ca> writes:
> Why is it that /linuxrc in the initrd process starts with PID 4? This is
> useless, since init will not start without the proper PID, which is 1.

This is because the kernel will start /sbin/init after linuxrc has
finished.

There's no reason at all why you would want to have init start from within
/linuxrc, is there? (At least, I haven't found any yet.)

If you want your RAM disk to be _the_ root, then echo its device number to
/proc/sys/kernel/real-root-dev before exiting from /linuxrc. You get the
device number (should be 0x1FF) by "ls -l /proc/self/root" (from /linuxrc,
of course).

--
Did you hear about the Len Bias Memorial Basketball League?
It's for guys six feet and under.
--
Matthias Urlichs \ noris network GmbH / Xlink-POP Nürnberg
Schleiermacherstraße 12 \ Linux+Internet / EMail: urlichs@noris.de
90491 Nürnberg (Germany) \ Consulting+Programming+Networking+etc'ing
PGP: 1024/4F578875 1B 89 E2 1C 43 EA 80 44 15 D2 29 CF C6 C7 E0 DE
Click <A HREF="http://info.noris.de/~smurf/finger">here</A>. 42

\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.212 / U:1.840 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site