diff options
authorStefan Agner <>2018-05-16 11:13:52 +0200
committerRichard Purdie <>2018-06-16 22:34:12 +0100
commit3ce2ee20e7e256adc6527b6000936c3c4c96bb1b (patch)
parent67a0396269ebff7da2f6c5d18a0c38f767749ba8 (diff)
openembedded-core-contrib-3ce2ee20e7e256adc6527b6000936c3c4c96bb1b.tar.bz2 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 (" Change logic to unistall packages") 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 <> Signed-off-by: Richard Purdie <>
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oe/ b/meta/lib/oe/
index c51e76ddfc..28642abbd9 100644
--- a/meta/lib/oe/
+++ b/meta/lib/oe/
@@ -561,6 +561,9 @@ class DpkgOpkgRootfs(Rootfs):
return pkg_list
def _save_postinsts_common(self, dst_postinst_dir, src_postinst_dir):
+ if bb.utils.contains("IMAGE_FEATURES", "package-management",
+ True, False, self.d):
+ return
num = 0
for p in self._get_delayed_postinsts():