[oe-commits] Phil Blundell : image.bbclass: Also uninstall update-alternatives and shadow for read-only-rootfs

git at git.openembedded.org git at git.openembedded.org
Sun Feb 2 22:35:22 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: d41097a970e9bfa553cd4bc3c9fad4b9073d7bd5
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=d41097a970e9bfa553cd4bc3c9fad4b9073d7bd5

Author: Phil Blundell <pb at pbcl.net>
Date:   Sun Feb  2 11:38:57 2014 +0000

image.bbclass: Also uninstall update-alternatives and shadow for read-only-rootfs

If the rootfs is read-only then we aren't going to be updating any
alternatives or modifying the password file and these binaries will
be redundant.  In an ideal world we would be able to stop them from
being installed in the first place but this is non-trivial to arrange.
As a workaround in the meantime, let's just uninstall them once image
construction is finished.

Signed-off-by: Phil Blundell <pb at pbcl.net>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/image.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 5049b3f..37b761b 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -536,7 +536,7 @@ rootfs_uninstall_unneeded () {
 			fi
 
 			# Remove package only if it's installed
-			pkgs_to_remove="update-rc.d base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}"
+			pkgs_to_remove="update-rc.d base-passwd update-alternatives shadow ${ROOTFS_BOOTSTRAP_INSTALL}"
 			for pkg in $pkgs_to_remove; do
 			    # regexp for pkg, to be used in grep and sed
 			    pkg_regexp="^`echo $pkg | sed 's/\./\\\./'` "



More information about the Openembedded-commits mailing list