From: Stephano Cetola Date: Wed, 17 Aug 2016 23:25:33 +0000 (-0700) Subject: rootfs.py: allow removal of unneeded packages X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~24511 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfb869ffd4c37c3cc8e6b3eb732c1a7b7cfc3cb0;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git rootfs.py: allow removal of unneeded packages Current functionality allows for the removal of certain packages based on the read-only image feature. This patch extends this functionality by adding the FORCE_RO_REMOVE variable, which will remove these packages regardless of any image features. [ YOCTO #9491 ] Signed-off-by: Stephano Cetola Signed-off-by: Ross Burton --- diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index ed0bab1fa49..7c620e938b1 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py @@ -253,7 +253,9 @@ class Rootfs(object, metaclass=ABCMeta): image_rorfs = bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs", True, False, self.d) - if image_rorfs: + image_rorfs_force = self.d.getVar('FORCE_RO_REMOVE', True) + + if image_rorfs or image_rorfs_force == "1": # Remove components that we don't need if it's a read-only rootfs unneeded_pkgs = self.d.getVar("ROOTFS_RO_UNNEEDED", True).split() pkgs_installed = image_list_installed_packages(self.d)