]> code.ossystems Code Review - openembedded-core.git/commitdiff
image.bbclass: Also uninstall update-alternatives and shadow for read-only-rootfs
authorPhil Blundell <pb@pbcl.net>
Sun, 2 Feb 2014 11:38:57 +0000 (11:38 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 2 Feb 2014 22:37:08 +0000 (22:37 +0000)
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@pbcl.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/image.bbclass

index 5049b3faa029b9288fa2431666ee46c7bbfedff5..37b761ba447d9f37fa64bdc43d388a5b8a7617a2 100644 (file)
@@ -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/\./\\\./'` "