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

Alexander Kanavin alexander.kanavin at linux.intel.com
Thu Dec 14 14:55:25 UTC 2017


On 12/14/2017 04:41 PM, Stefan Agner wrote:

> I think removing the Opkg first boot systemd service (as the initial
> patch does) is the correct first step.
> 
> However, it currently still leads to a second copy of the postinst
> scripts in /etc if package management is enabled.
> I am pretty sure that adding if delayed_postinsts and not
> runtime_pkgmanage: should resolve the problem for ipk/deb fully: With
> that run-postinsts will run "opkg configure"/"dpkg --configure -a"
> respectively when package management is installed, and those command
> will run all postinst correctly.

Why is the second copy a problem? Can you elaborate? Don't describe the 
fix, describe the issue.

 From what I can see, run-postinsts will execute opkg configure if opkg 
is available, or run the scripts directly if opkg is not available - 
which is fine. Why do you need to avoid saving the scripts in /etc if 
opkg is installed?

Alex



More information about the Openembedded-core mailing list