On Sat, Nov 19, 2011 at 16:59, McClintock Matthew-B29882
<b29...@freescale.com> wrote:
> On Sat, Nov 19, 2011 at 8:29 AM, Otavio Salvador
> <ota...@ossystems.com.br> wrote:
>>> It must be online though in this case?
>>
>> The code you add needs to be running on target and doesn't work at
>> rootfs built time. This is bad and adds more complications to
>> read-only-fs support.
>
> This works *perfectly* with a read only fs. Each time it boots removes
> the non-working serial ports. One could argue that it does NOT work
> completely as expected with a writable file system.

It does not. Only if you have tmpfs on it too.

>>>> This could be done with a specific package that could mangle the
>>>> image at first boot if really need but doing it by default on oe-core
>>>> seems the wrong way.
>>>
>>> Isn't that exactly what this is doing?
>>>
>>> Easy enough to add this to a separate recipe or bbapends elsewhere if
>>> there is disagreement.
>>
>> The need to diverge from machine default is the exception and this
>> could be handled on the image being built, as post rootfs hook or an
>> specific package with postinst to be run at target boot to setup it,
>> and not by default.
>
> This will not work as a post rootfs hook as I've explained before. Let
> me give you a more concrete example: We have a root file stored in
> flash. We use it to boot from on a system with 4 serial ports. We use
> the same image again to boot several kvm instances each of which only
> have 1 serial port. The kvm instances will have spurious init messages
> about respawning getty.

This usecase ought to be fulfilled with a specific package our boot
script that does this setup on runtime. As I said I see the use-case
but disagree about it being done on oe-core.

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

_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to