On Sun, 25 Feb 2001 17:41:40 +0100 (CET), 
Romain Lerallut <[EMAIL PROTECTED]> wrote :

> En r�alit�, faire "init=/bin/bash" puis "exec init" c'est exactement le
> processus de boot. 

Il me semblait que le noyau lan�ait directement init. Enfin, c'est ce
que semblent indiquer les sources [il s'agit des derni�res lignes de
linux/init/main.c] :

static int init(void * unused)
{
[...]
        /*
         * We try each of these until one succeeds.
         *
         * The Bourne shell can be used instead of init if we are 
         * trying to recover a really broken machine.
         */

        if (execute_command)
                execve(execute_command,argv_init,envp_init);
        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);
        panic("No init found.  Try passing init= option to kernel.");
}


Marc


Répondre à