Gentoo Archives: gentoo-dev

From: Michael Weber <xmw@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] eselect init
Date: Fri, 21 Jun 2013 10:30:29
Message-Id: 51C42B33.9090709@gentoo.org
In Reply to: Re: [gentoo-dev] eselect init by "Michał Górny"
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 On 06/21/2013 04:39 AM, Michał Górny wrote:
5 > Dnia 2013-06-20, o godz. 15:56:09 William Hubbs
6 > <williamh@g.o> napisał(a):
7 >
8 >> On Thu, Jun 20, 2013 at 12:16:36PM +0200, Fabio Erculiani wrote:
9 >>> There is a new version of eselect-init in the systemd-love
10 >>> overlay to play with. The new version saw the following major
11 >>> changes:
12 >>>
13 >>> - the /sbin/init (aka the symlink that eselect-init handles)
14 >>> can be changed to whatever one wants through make.conf [1]
15 >>> (this is a compile time option, as documented in the eclass)
16 >>
17 >> Why do we need to mess with /sbin/init at all?
18 >
19 > Yes, we do because we don't want sysvinit randomly getting run as
20 > fallback and messing with our systems.
21 So what's the point in having it optional, if sysvinit would just mess
22 around with it.
23
24 You'd only hit this, if you start your userland with an foreign kernel.
25 Forgotten bootloader arguments can be "defaulted" with ...
26
27 >> I like the suggestion that came up here on the list a while back,
28 >> have the eselect init module install its own symlink at, say,
29 >> /sbin/einit. You would still have to have the user edit their
30 >> boot loader configuration file one time if they want to use this,
31 >> but this makes it completely opt-in.
32 >
33 > Plus hacking kernel sources to disable /sbin/init fallback.
34
35 CONFIG_CMDLINE=/sbin/whatever works, i use it for root=, crypt_dev, ...
36 CONFIG_CMDLINE_OVERRIDE should stay off to respect bootloader "cmdline".
37
38 [ working with foreign init systems (runit-musl based ignite on
39 archlinux, NoUpgrade=sbin/init aka CONFIG_PROTECT does work, too.]
40
41 - --
42 Michael Weber
43 Gentoo Developer
44 web: https://xmw.de/
45 mailto: Michael Weber <xmw@g.o>
46 -----BEGIN PGP SIGNATURE-----
47 Version: GnuPG v2.0.20 (GNU/Linux)
48 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
49
50 iF4EAREIAAYFAlHEKzMACgkQknrdDGLu8JA6AwD+MyTTKeHlNN/1Nud/G0L7XnA+
51 hdJl4qATOU3MkyqDQw0A+wao6tYrHTFWCt4MmTOxl3gsBvUvE/w4sQyZcPTElg3h
52 =XwPu
53 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] eselect init Fabio Erculiani <lxnay@g.o>