[OE-core] [PATCH V5] rootfs.py: allow removal of unneeded packages

Stephano Cetola stephano.cetola at linux.intel.com
Wed Aug 17 23:25:32 UTC 2016


Paul and I had a discussion about this a couple weeks ago. We want to
allow for the removal of certain packages, regardless of the image
features containing "read-only-rootfs".

For example, if something has a runtime dependency on update-rc.d or
shadow, we need a way to remove these packages regardless of this
dependency.

Here is my idea for documenting the new variable:

FORCE_RO_REMOVE
Setting this variable to "1" will force the removal of the packages
listed in ROOTFS_RO_UNNEEDED during the generation of the rootfs.

I have purposely kept ROOTFS_RO_UNNEEDED from being easily
overridden, as this would have allowed users to remove packages on a
whim, which may be giving them just enough rope to hang themselves.

That being said, IMHO this patch adds some flexibility without adding
serious complexity or avenues for confusion.

Stephano Cetola (1):
  rootfs.py: allow removal of unneeded packages

 meta/lib/oe/rootfs.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

-- 
2.9.3




More information about the Openembedded-core mailing list