-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 25/05/13 03:08 PM, Matthew Thode wrote:
> On 05/25/13 05:25, Peter Stuge wrote:
>> Luca Barbato wrote:
>>> - init gets effectively switched only at boot/reboot
>> 
>> Please not on reboot, because an unclean shutdown shouldn't leave
>> the system in limbo.
>> 
>> On boot could work, except that it does add more steps (= more 
>> fragility) to the boot process, which I think everyone wants to 
>> avoid.
>> 
>> I would actually expect the change to take effect immediately.
>> 
>> 
>> //Peter
>> 
> the final action before / is remouted ro at shutdown would make
> sense to me.  It's either that or first action at boot.
> 

First action at boot, without an initramfs, is too late isn't it?  The
kernel has already launched init at this point.  Also, relying on
something at shutdown is going to be problematic too -- openrc and
systemd (and whatever others) all need the functionality to do this
built into their "scripts", and cases of dirty shutdowns are not going
to be handled well.

The only way I can think of that this is going to work, every time,
reliably, is if it was done within an initramfs and therefore prior to
the start of actual init (ie, initramfs would read a config file to
determine what init-selector to run, calls the init-selector actions,
and then exec's that init -- that config file could be
eselect-controlled or just edited)

And that brings back in the whole initramfs-required flamewar....


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iF4EAREIAAYFAlGiGIMACgkQ2ugaI38ACPBw+gD6A6F5DF6fTFYibbpBjueg1rw1
SL/zUYRomTXDrfhqbDUA/3YxUCAeXrX8dDAlQKbomWnVCG9gKrZObOF5lFo/MXZs
=GXEk
-----END PGP SIGNATURE-----

Reply via email to