mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
31982f1659
commit
d45a3449bc
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user