On Sat, 30 Aug 2003 16:56:06 -0400, Phil Edwards wrote:
> Under the generic boot parameters section (very first section), bootparam(7)
> lists the following:
>
> `init=...'
> This sets the initial command to be executed by the kernel. If this is
> not set, or cannot be found, the kernel will try /etc/init, then
> /bin/init, then /sbin/init, then /bin/sh and panic if all of this
> fails.
>
> Under 2.4.20 (from the Debian source package; I did not check older nor
> newer kernel versions, nor did I check pure-kernel-vs-Debian-kernel), the
> code is actually as follows:
>
> execve("/sbin/init",argv_init,envp_init);
> execve("/etc/init",argv_init,envp_init);
> execve("/bin/init",argv_init,envp_init);
> execve("/bin/sh",argv_init,envp_init);The order the manpage describes seems to have applied to the 2.0 kernel series, while for the 2.2 series and later the order as outlined by Phil seems to apply. Considering the manpage header | .TH BOOTPARAM 7 1995-01-14 "Linux 2.1.21" "Linux Programmer's Manual" this seems to fit well. HTH, Flo
signature.asc
Description: Digital signature

