[OE-core] [PATCH v2] init-live: default to initrd shell if image isn't found

Otavio Salvador otavio at ossystems.com.br
Mon Dec 17 17:09:24 UTC 2012


On Mon, Dec 17, 2012 at 3:06 PM, Darren Hart <dvhart at linux.intel.com> wrote:
>
>
> On 12/17/2012 04:55 AM, Alex DAMIAN wrote:
>> From: Alexandru DAMIAN <alexandru.damian at intel.com>
>>
>> Adds "debugshell" command line parameter for live/install images.
>>
>> If the init live fails to find and mount a root-fs image,
>> dumps to a shell after timeout so that the developer can figure
>> what's wrong.
>>
>> Timeout defaults to 30 seconds, but it can be changed as param
>> argument.
>>
>> Prior art in Ubuntu. Also, leaving a system stale isn't good form.
>>
>> Signed-off-by: Alexandru DAMIAN <alexandru.damian at intel.com>

One possible improvement (not for this patch but long term) is to use
initramfs-framework for this. It provides a modular system and has
some nice featues for debug and shell handling so you can say:

debug=before:udev shell=after:e2fs

Just an example. Another good thing about it is it allow for less code
duplication.

--
Otavio Salvador                             O.S. Systems
E-mail: otavio at ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br




More information about the Openembedded-core mailing list