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

Stefan Agner stefan at agner.ch
Thu Dec 14 13:11:52 UTC 2017


On 2017-12-14 14:10, Alexander Kanavin wrote:
> On 12/13/2017 08:29 PM, Stefan Agner wrote:
> 
>> Maybe it needs something like this?
>>
>>
>>          runtime_pkgmanage = bb.utils.contains("IMAGE_FEATURES",
>> "package-management",
>>                                                True, False, self.d)
>>          if delayed_postinsts and not runtime_pkgmanage:
>>              self._save_postinsts()
>>              if image_rorfs:
>>                  bb.warn("There are post install scripts "
>>                          "in a read-only rootfs")
> 
> 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.

--
Stefan



More information about the Openembedded-core mailing list