[OE-core] [RFC] opkg: avoid running postinst scripts twice when using systemd
Alexander Kanavin
alexander.kanavin at linux.intel.com
Thu Dec 14 16:59:28 UTC 2017
On 12/14/2017 06:46 PM, Stefan Agner wrote:
> Suggestion:
> - Still remove systemd opkg service as proposed, since run-postinsts
> gets run with systemd and should/will handle package manager just fine
Yes.
> - Change run-postinsts to behave sane: Detect package management by
> checking /var/lib/dpkg/status and /var/lib/opkg/status only (remove the
> if [ ! -d $pi_dir ]; then continue; fi...)
Maybe; you need to explain this carefully in the commit message.
> - Stop deploying /etc/*-postinsts when package management is installed
Probably not; rpm does not have a facility for 'delayed postinst
execution' the way dpkg/opkg do, and this would create more confusion
and special-casing than achieve any real improvement imo.
Jussi left Intel several months ago.
Alex
More information about the Openembedded-core
mailing list