[poky] Postinstallation script for target throw warnings

Robert Yang liezhi.yang at windriver.com
Tue Jan 16 01:22:05 PST 2018



On 01/12/2018 08:49 PM, Alexander Kanavin wrote:
> On 01/12/2018 03:45 AM, Robert Yang wrote:
>>>> But it would be better if you can make it work during do_rootfs rather
>>>> than firstboot.
>>>
>>> This is not correct. If you do this, then the postinst will be executed once, 
>>> during image creation, and Actions will never be taken.
>>
>> Sorry, I think that the 'Action' will be executed when first boot ?
> 
> Before that happens, the script needs to be deferred to first boot by issuing 
> 'exit 1'. There's special magic to extract it from rpm and place in a separate 
> execute-on-first-boot location in the target filesystem that gets triggered by 
> 'exit 1'.

Ah, yes, thank you very much.

// Robert

> 
> Alex
> 


More information about the poky mailing list