On 25/05/13 03:55 PM, Tom Wijsman wrote:
>> > I don't have "init=" set on my machines and it seems to
>> > start /sbin/init. So that should be correct.
> Ah yeah, a quick `ps axjf | grep bin/[i]nit` indeed confirms that.
>  

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/init/main.c?id=v3.9#n820

>       /*
>        * 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) {
>               if (!run_init_process(execute_command))
>                       return 0;
>               printk(KERN_WARNING "Failed to execute %s.  Attempting "
>                                       "defaults...\n", execute_command);
>       }
>       if (!run_init_process("/sbin/init") ||
>           !run_init_process("/etc/init") ||
>           !run_init_process("/bin/init") ||
>           !run_init_process("/bin/sh"))
>               return 0;
> 
>       panic("No init found.  Try passing init= option to kernel. "
>             "See Linux Documentation/init.txt for guidance.");

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to