1 |
On Sat, 25 May 2013 14:29:12 +0300 |
2 |
Sergei Trofimovich <slyfox@g.o> wrote: |
3 |
|
4 |
> If you can't change options at boot time it's very simple to get |
5 |
> unbootable system. |
6 |
|
7 |
https://bugs.gentoo.org/show_bug.cgi?id=465236#c34 |
8 |
|
9 |
In above Bug #465236 at Comment #34 the suggestion has been made to |
10 |
maybe call the wrapper /sbin/einit and leave /sbin/init at a sane |
11 |
default. That way the user should still be able to boot the Gentoo |
12 |
default as long as it does not end up being removed from the system. |
13 |
|
14 |
In other words, changing init=/sbin/einit back to init/sbin/init fixes |
15 |
things; I don't think it's asked too much to add init=/sbin/einit in |
16 |
the bootloader or kernel in the alternative init systems documentation. |
17 |
|
18 |
> Just curious, who does such systems and how root filesystem (+ it's |
19 |
> mount options) is expected to be found there? |
20 |
|
21 |
I don't see how this is a problem; the kernel loads what you have |
22 |
set as init and after that you have root filesystem access, possibly |
23 |
read only at this point but you don't have to find the root fs here. |
24 |
|
25 |
> I guess EFI allows you to set bootargs via EFI UI. |
26 |
|
27 |
Not so sure about this, but most people end up hardcoding it in the |
28 |
kernel; you can do this by setting CONFIG_CMDLINE. |
29 |
|
30 |
> I'd go for init=/sbin/gentoo-init and make all the messy stuff there. |
31 |
> Otherwise by breaking /sbin/init it would be hard to find proper |
32 |
> name of, say, SYSVs /sbin/init. How would you call it? |
33 |
|
34 |
Yeah, this is what the /sbin/einit suggestion above tries to resolve. |
35 |
|
36 |
We shouldn't have our users guess at names here, all they should |
37 |
know is to add einit if they wish to be able to switch and that |
38 |
removing it will load the default init system present on Gentoo... |
39 |
|
40 |
-- |
41 |
With kind regards, |
42 |
|
43 |
Tom Wijsman (TomWij) |
44 |
Gentoo Developer |
45 |
|
46 |
E-mail address : TomWij@g.o |
47 |
GPG Public Key : 6D34E57D |
48 |
GPG Fingerprint : C165 AF18 AB4C 400B C3D2 ABF0 95B2 1FCD 6D34 E57D |