[OE-core] [RFC] opkg: avoid running postinst scripts twice when using systemd

Alexander Kanavin alexander.kanavin at linux.intel.com
Thu Dec 14 13:52:45 UTC 2017


On 12/14/2017 03:11 PM, Stefan Agner wrote:
>
>> I don't think this is correct. Some postinsts are intentionally
>> deferred to first boot, and they need to be run regardless of whether
>> the image supports runtime package management or not.
> 
> Yes I know, the mentioned opkg-keyrings is such a case.
> 
> If there is no package management, then scripts get deployed via
> /etc/*-postinsts, if package management is available then it will take
> care of it.

 From reading the code, that only happens when using rpm. In other cases 
you need to execute _save_postinsts(), regardless of whether package 
management is available on image or not.

Whatever changes you try, do run oe-selftest's 
'test_postinst_rootfs_and_boot' test against them and make sure it 
doesn't regress.


Alex



More information about the Openembedded-core mailing list