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

ChenQi Qi.Chen at windriver.com
Wed Jan 23 06:07:20 UTC 2013


On 01/23/2013 02:17 AM, Mike Looijmans wrote:
> On 01/22/2013 07:36 AM, Qi.Chen at windriver.com wrote:
>> From: Chen Qi <Qi.Chen at 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




More information about the Openembedded-core mailing list