Ittay Dror wrote: > can i please get more assistance investigating this? > > how do initng and initrd interact? my initrd 'init' script finishes with 'switchroot'. is this the point when initng is run? can i exit after this? i don't think that initng interacts with your initrd (aka initramfs).
commonly, an initramfs does stuff like loading the appropriate drivers, and mounts the root filesystem. after this, it does something like this: chroot /path/to/real/root exec /sbin/initng (actually, this is a bit more complicated, as chroot needs a program to run.) The thing to note is: /sbin/initng (or whatever) is run using the "execve" syscall, trapped in a chroot (which is the "real" root fs). the execve syscall _replaces_ the shell that executes the init script (with PID = 1) with /sbin/initng. after that, the kernel notices that there are no active processes left in the initramfs / intird, and unmounts it. your initscript is dead and buried once initng starts. sentences like "you are faster without initrd" are true, ntl, because the initrd already takes a couple of seconds to do it's job. i've always used an initramfs together with initng, and never had trouble. but i'm running on an fairly old version of initng now. Once i got internet at home, i might be able to help you more. > > thanks, > ittay > > Ittay Dror wrote: >> >> Ismael Luceno wrote: > Ittay Dror escribió: > >>>> i installed initng on fedora 6 from the extras repository: > >>>> initng-ifiles-0.0.6-2.fc6 > >>>> initng-lib-0.6.8-9.fc6 > >>>> initng-0.6.8-9.fc6 > >>>> > >>>> after reboot top shows: > >>>> 358 root 25 0 2604 400 208 R 95.3 0.0 21:13.79 > >>>> /bin/nash /init > That's nash fault... > >> well, it used to work fine before i installed initng... > >> > If you give some more information about your setup, then maybe we can > help you... > >> what more do you need? i'm using fedora 6, with the latest standard > >> kernel from fedora. > >> > However, I recommend you to compile a custom kernel and boot without an > initrd, that will solve your problem, and also give you a shorter boot > time :) > >> ok, how can i do that? > >> > PS: initng should have pid 1. > >> it has. > >> >>> >> -- _______________________________________________ Initng mailing list [email protected] http://jw.dyndns.org/mailman/listinfo/initng
