]> code.ossystems Code Review - openembedded-core.git/commit
rootfs.py: uninstall the run-postinsts package if not needed
authorAwais Belal <Awais_Belal@mentor.com>
Thu, 25 Mar 2021 11:59:32 +0000 (16:59 +0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 28 Mar 2021 21:28:09 +0000 (22:28 +0100)
commit627fb3181edd71502fbdf96549c41b2dea027250
tree64506f5d1bea1aa5730d8afea943ace6b99bea53
parent557d956743ecf5e1d002ae0b2135b1307736b7c8
rootfs.py: uninstall the run-postinsts package if not needed

The run-postinsts package runs post installation scripts
on target if packages request delayed post installations. When
no delayed post installations are found the sysV style scripts
are disabled for the package and hence it did not run on sysV
based systems. However, the package provides systemd service
as well which still ran on systems based on systemd even when
no post installations were found.
Rather than disabling/masking scripts for different initialization
managers we now simply remove/uninstall the run-postinsts package
when no post installations are found to be delayed till runtime.
This is also more aligned with the function (_uninstall_unneeded)
this functionality is triggered through.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/rootfs.py