]> code.ossystems Code Review - openembedded-core.git/commit
opkg: avoid running postinst scripts twice when using systemd
authorStefan Agner <stefan.agner@toradex.com>
Wed, 16 May 2018 09:13:50 +0000 (11:13 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Jun 2018 09:59:33 +0000 (10:59 +0100)
commit23dcf7ea3af84721fac126a2b2f0f100f7266368
tree1b592c19dedee2c6bb57a0992e1c9c454977f154
parentc4cdfc0507bba6edbdd361fd61a95eef8c76bb87
opkg: avoid running postinst scripts twice when using systemd

OpenEmbedded has a built-in mechanism to run postinst scripts offline
at build time or, if necessary, on first boot (delayed execution). If
the latter is the case and systemd is in use, two services end up
doing the same thing:
- opkg-configure.service starts "opkg configure" directly.
- run-postinsts.service starts "/usr/sbin/run-postinsts" which runs
  postinst scripts stored in /etc/ipk-postinsts/ or "opkg configure"
  if package management is installed.

Since the run-postinsts.service is also used in cases where no
package management is in use, it is the primary means of handling
postinsts.

Get rid of the opkg-configure.service to avoid duplicate opkg
configure execution.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/opkg/opkg/opkg-configure.service [deleted file]
meta/recipes-devtools/opkg/opkg_0.3.6.bb