Gentoo Archives: gentoo-dev

From: Alex Xu <alex_y_xu@×××××.ca>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] eselect init
Date: Sat, 25 May 2013 20:08:00
Message-Id: 51A11A17.5060603@yahoo.ca
In Reply to: Re: [gentoo-dev] eselect init by Tom Wijsman
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.");

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] eselect init Tom Wijsman <TomWij@g.o>