SUMMARY: Re: initrd; /linuxrc getpid() != 1
"Jason H. Smith" <[email protected]>
| Newsgroups | gmane.linux.admin.managers |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Saturday 26 April 2003 11:47 am, Jason H. Smith wrote:
> Hi. This one kept me up late last night, and I still haven't solved
> it.
Well! Ten minutes after I posted this I finally solved the problem. I'd
been searching google, but only today did I read that /linuxrc does not
necessarily need to exec /sbin/init, as explained in
Documentation/initrd.txt. What works is to tell the kernel that root is
already mounted ('echo 256 > /proc/sys/kernel/real-root-dev'), and simply
let /linuxrc exit normally. The kernel will then call /sbin/init in its
proper role.
I still consider this a workaround, since I needed to stray from the
kernel Documentation; so if people have any input, I'm still glad to
summarize.
- --
Jason Smith
Open Enterprise Systems
Bangkok, Thailand
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+qhQtm5qEoSbpT3kRAvdUAKCHmpCByaF54zvoER2UFzd03n9cyACfY5Ec
rXrIyLbYidxtuwHYj7zL8xg=
=B6Hv
-----END PGP SIGNATURE-----
_______________________________________________
LinuxManagers mailing list - http://www.linuxmanagers.org
submissions: LinuxManagers-35TzE1X9F6582KRnZfj+bdi2O/[email protected]
subscribe/unsubscribe: http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers