]> code.ossystems Code Review - openembedded-core.git/commit
rootfs.py: for dpkg/opkg, don't install postinsts if package management is present
authorStefan Agner <stefan.agner@toradex.com>
Wed, 16 May 2018 09:13:52 +0000 (11:13 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Jun 2018 09:59:33 +0000 (10:59 +0100)
commit4b571c59e3e6bd8b22a63f547a95757aeba5b638
tree082907702e38eb110da22baf7bf7b83680756fc4
parent1af421fcf05457223bf271f3951599b6c150cdff
rootfs.py: for dpkg/opkg, don't install postinsts if package management is present

If package management is present opkg/dpkg will bring the original
copy of the postinsts scripts with the metadata and will be able to
handle postinsts just fine. In fact, it is preferred to let package
management handle the postinsts scripts in this case since it will
keep the package managers database up-to-date too. The run-postinsts
scripts will make sure the package manager gets invoked instead of
the scripts directly.

Note: Before commit 5aae19959a44 ("rootfs.py: Change logic to
unistall packages") rootfs.py did not install /etc/$pm-postinsts
too. It is not clear whether that change was intentionally or just
a bug. This commit fixes/reverts that aspect of the commit.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/rootfs.py