Re: [RFC PATCH] Introduce a 'recovery' command line option

From: Janne Karhunen
Date: Tue Aug 16 2016 - 05:48:41 EST


On Tue, Aug 16, 2016 at 11:59 AM, Richard Weinberger <richard@xxxxxx> wrote:

>> For saving some precious boot-up time (my systems run without initrd)
>> and to unify the solutions. If kernel does this bootloaders and
>> initrds don't have to care.
>
> Features - collect them all? ;-)

Well if every vendor ends up implementing something different for this
purpose and it can be solved with just a few lines of common kernel
code, IMHO it might just be worth it.


> I my opinion it is not wise to move feature into the kernel which can
> be solved perfectly fine in userspace (initramfs).
>
> How much slows an initramfs your boot time down?
>
> Did you try using a handmade minimal initramfs? Not compressed, single c program,
> statically linked..., etc.

Depends on the initrd and the hardware, of course. Certainly you can
implement the same on initd, but you can never make it as fast as this
one. Moreover, this solution would have a common 'user interface' for
the functionality if anyone cares about the userspace unification
efforts.


--
Janne