]> code.ossystems Code Review - openembedded-core.git/commit
run-postinsts: for dpkg/opkg, do not rely on /etc/*-postinsts
authorStefan Agner <stefan.agner@toradex.com>
Wed, 16 May 2018 09:13:51 +0000 (11:13 +0200)
committerArmin Kuster <akuster808@gmail.com>
Sat, 23 Mar 2019 01:55:04 +0000 (18:55 -0700)
commit85e498a4671426999610d90c87c354d41cfe8443
tree4f2c52abb7000ddd7e14b26d6c6a437861ec0f56
parent6d56e912fbbaa22830b4da5ab230586a3d15b23e
run-postinsts: for dpkg/opkg, do not rely on /etc/*-postinsts

Start opkg/dpkg as soon as the respective package managers status
file is present, no matter whether /etc/$pm-postinsts exists. This
decouples the implicit link between postinsts scripts in /etc and
the package manager: Currently the package manager is only started
if those scripts are present, although the package manager does not
use those scripts at all! Package managers install their own set of
postinst scripts.

The behavior when using rpm packages stays the same.

Note that using the package managers capability to execute postinst
scripts is preferred for good reasons: It makes sure that the
package managers database reflects that the packages have been
completely installed and configured.

This change allows to drop installation of the postinsts scripts
when package management is present. This will be done in a separate
change.

Note: Before commit 5aae19959a44 ("rootfs.py: Change logic to
unistall packages") rootfs.py did not install /etc/$pm-postinsts
when package management is installed! The change caused YOCTO #8235
which lead to the behavior change of run-postinsts in first place.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts
meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service