summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/rootfs.py
diff options
context:
space:
mode:
authorStephano Cetola <stephano.cetola@linux.intel.com>2016-08-17 16:25:33 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-25 23:03:48 +0100
commitd45a3449bc15de2334860c1964b81a20d876174c (patch)
tree7b4389292718b4383c4980a0882377214fe8ec5e /meta/lib/oe/rootfs.py
parent31982f16592cde4da77c725d5cf7cfa65ee58f8d (diff)
downloadpoky-d45a3449bc15de2334860c1964b81a20d876174c.tar.gz
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 ] (From OE-Core rev: cfb869ffd4c37c3cc8e6b3eb732c1a7b7cfc3cb0) Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/rootfs.py')
-rw-r--r--meta/lib/oe/rootfs.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index ed0bab1fa4..7c620e938b 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -253,7 +253,9 @@ class Rootfs(object, metaclass=ABCMeta):
253 253
254 image_rorfs = bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs", 254 image_rorfs = bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs",
255 True, False, self.d) 255 True, False, self.d)
256 if image_rorfs: 256 image_rorfs_force = self.d.getVar('FORCE_RO_REMOVE', True)
257
258 if image_rorfs or image_rorfs_force == "1":
257 # Remove components that we don't need if it's a read-only rootfs 259 # Remove components that we don't need if it's a read-only rootfs
258 unneeded_pkgs = self.d.getVar("ROOTFS_RO_UNNEEDED", True).split() 260 unneeded_pkgs = self.d.getVar("ROOTFS_RO_UNNEEDED", True).split()
259 pkgs_installed = image_list_installed_packages(self.d) 261 pkgs_installed = image_list_installed_packages(self.d)