]> code.ossystems Code Review - openembedded-core.git/commitdiff
rootfs.py: allow removal of unneeded packages
authorStephano Cetola <stephano.cetola@linux.intel.com>
Wed, 17 Aug 2016 23:25:33 +0000 (16:25 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 Aug 2016 22:02:10 +0000 (23:02 +0100)
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 <stephano.cetola@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oe/rootfs.py

index ed0bab1fa493bb16e6d43786e9c3e0197797b106..7c620e938b13ef0616dfe6be65ab222bff76db8a 100644 (file)
@@ -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)