1 |
On 25/05/13 03:55 PM, Tom Wijsman wrote: |
2 |
>> > I don't have "init=" set on my machines and it seems to |
3 |
>> > start /sbin/init. So that should be correct. |
4 |
> Ah yeah, a quick `ps axjf | grep bin/[i]nit` indeed confirms that. |
5 |
> |
6 |
|
7 |
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/init/main.c?id=v3.9#n820 |
8 |
|
9 |
> /* |
10 |
> * We try each of these until one succeeds. |
11 |
> * |
12 |
> * The Bourne shell can be used instead of init if we are |
13 |
> * trying to recover a really broken machine. |
14 |
> */ |
15 |
> if (execute_command) { |
16 |
> if (!run_init_process(execute_command)) |
17 |
> return 0; |
18 |
> printk(KERN_WARNING "Failed to execute %s. Attempting " |
19 |
> "defaults...\n", execute_command); |
20 |
> } |
21 |
> if (!run_init_process("/sbin/init") || |
22 |
> !run_init_process("/etc/init") || |
23 |
> !run_init_process("/bin/init") || |
24 |
> !run_init_process("/bin/sh")) |
25 |
> return 0; |
26 |
> |
27 |
> panic("No init found. Try passing init= option to kernel. " |
28 |
> "See Linux Documentation/init.txt for guidance."); |