[poky] Postinstallation script for target throw warnings
Alexander Kanavin
alexander.kanavin at linux.intel.com
Fri Jan 12 04:49:20 PST 2018
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'.
Alex
More information about the poky
mailing list