Gentoo Archives: gentoo-dev

From: Ian Stakenvicius <axs@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] eselect init
Date: Sun, 26 May 2013 14:13:28
Message-Id: 51A21883.4030402@gentoo.org
In Reply to: Re: [gentoo-dev] eselect init by Matthew Thode
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 On 25/05/13 03:08 PM, Matthew Thode wrote:
5 > On 05/25/13 05:25, Peter Stuge wrote:
6 >> Luca Barbato wrote:
7 >>> - init gets effectively switched only at boot/reboot
8 >>
9 >> Please not on reboot, because an unclean shutdown shouldn't leave
10 >> the system in limbo.
11 >>
12 >> On boot could work, except that it does add more steps (= more
13 >> fragility) to the boot process, which I think everyone wants to
14 >> avoid.
15 >>
16 >> I would actually expect the change to take effect immediately.
17 >>
18 >>
19 >> //Peter
20 >>
21 > the final action before / is remouted ro at shutdown would make
22 > sense to me. It's either that or first action at boot.
23 >
24
25 First action at boot, without an initramfs, is too late isn't it? The
26 kernel has already launched init at this point. Also, relying on
27 something at shutdown is going to be problematic too -- openrc and
28 systemd (and whatever others) all need the functionality to do this
29 built into their "scripts", and cases of dirty shutdowns are not going
30 to be handled well.
31
32 The only way I can think of that this is going to work, every time,
33 reliably, is if it was done within an initramfs and therefore prior to
34 the start of actual init (ie, initramfs would read a config file to
35 determine what init-selector to run, calls the init-selector actions,
36 and then exec's that init -- that config file could be
37 eselect-controlled or just edited)
38
39 And that brings back in the whole initramfs-required flamewar....
40
41
42 -----BEGIN PGP SIGNATURE-----
43 Version: GnuPG v2.0.19 (GNU/Linux)
44
45 iF4EAREIAAYFAlGiGIMACgkQ2ugaI38ACPBw+gD6A6F5DF6fTFYibbpBjueg1rw1
46 SL/zUYRomTXDrfhqbDUA/3YxUCAeXrX8dDAlQKbomWnVCG9gKrZObOF5lFo/MXZs
47 =GXEk
48 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] eselect init Luca Barbato <lu_zero@g.o>