[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: HELP on /etc/passwd



On Sun, 25 Feb 2001 17:41:40 +0100 (CET), 
Romain Lerallut <lerallut@eleves.enpc.fr> 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



Reply to: