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

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


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.


Alex



More information about the Openembedded-core mailing list