public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] initramfs, network diskless boot, init process, problems with switchroot (pivot_root)
@ 2006-06-16 20:05 Claudinei Matos
  2006-06-21 20:50 ` Richard Fish
  0 siblings, 1 reply; 8+ messages in thread
From: Claudinei Matos @ 2006-06-16 20:05 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1345 bytes --]

Hi guys,

I'm not sure if it's the best place to do this question but I hope somebody
could help me...
well, I'm trying to make such a network diskless boot script for a amd64
machine, the target of this project is to boot an amd64 machine via network
and mount nfs share as the root filesystem.
I'd created an initramfs wich mount the nfs share and do the pivot_root
(actually switch_root from busybox) but the problem is exactly at this
moment, 'cause when I try to do the switch_root and start the real init from
the nfs share, the system appears to freeze but after some seconds it do
print a message "Rebooting System" and just reboot the machine.
I'd tried to reinstall sysvinit (even a static version) but the problem
persists, I als tried to change the sysinit script on inittab but again the
same problem and it feels like the script is not executed, so for a last try
I did changed the init binary with a script that just call /bin/bash and for
my surprise it did work, but none system process run course.

What I want to know is if is there a way to change this "/sbin/rc sysinit"
from inittab to a custom script wich will do some configurations like create
some directories, mount some systems and later start the normal process from
"default" rc?

tks in any advance,


-- 
Claudinei Matos
<claudineimatos@gmail.com>
55-21-81980605

[-- Attachment #2: Type: text/html, Size: 1488 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-06-23 23:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-16 20:05 [gentoo-user] initramfs, network diskless boot, init process, problems with switchroot (pivot_root) Claudinei Matos
2006-06-21 20:50 ` Richard Fish
2006-06-21 21:45   ` Hans-Werner Hilse
2006-06-21 22:51     ` Richard Fish
2006-06-21 22:53       ` Richard Fish
2006-06-22  0:04       ` Hans-Werner Hilse
2006-06-22  1:12         ` Richard Fish
2006-06-23 23:43           ` Claudinei Matos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox