Re: [PATCH V8 2/6] image.bbclass: add a hook funtion to support readonly rootfs

ChenQi
2013-01-23T06:22:43Z

On 01/23/2013 02:17 AM, Mike Looijmans wrote:
> On 01/22/2013 07:36 AM, Qi.Chen@windriver.com wrote:
>> From: Chen Qi <Qi.Chen@windriver.com>
>>
>> read_only_rootfs_hook: this funtion is invoked only if
>> 'read-only-rootfs'
>> is in IMAGE_FEATURES. It tweaks some basic files and makes populate-
>> volatile.sh script run at rootfs time.
>
> To me, it seems running populate-volatile at rootfs is a good thing
> for writable rootfs as well, it reduces the writing at first boot. Why
> not ALWAYS do this?
>
Hi Mike,

The reason I didn't make it *always* run at rootfs is that it's not
*necessary*.
Besides, I want to encapsulate all all necessary tweaks at rootfs time
into one function -- read-only-rootfs-hook.
In this way, I can ensure that it doesn't mess up with other components.

Thanks,
Chen Qi