From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id 7D29C7638A for ; Fri, 31 Jul 2015 06:56:16 +0000 (UTC) Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail.windriver.com (8.15.1/8.15.1) with ESMTPS id t6V6uGoa011089 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Thu, 30 Jul 2015 23:56:17 -0700 (PDT) Received: from [128.224.162.200] (128.224.162.200) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.235.1; Thu, 30 Jul 2015 23:55:56 -0700 Message-ID: <55BB1C0F.90508@windriver.com> Date: Fri, 31 Jul 2015 14:56:15 +0800 From: Robert Yang User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Patches and discussions about the oe-core layer Subject: meta/lib/oe/rootfs.py: dont' remove any packages by default X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Jul 2015 06:56:18 -0000 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Currently, the rootfs.py removes base-passwd, shadow, update-rc.d, update-alternatives and run-postinsts when package-management not in IMAGE_FEATURES, this causes two problems: 1) This makes we can't install the removed pkgs to rootfs, such as IMAGE_INSTALL_append = " shadow", the shadow can't installed (first installed, then removed) 2) The base-passwd has been removed, but the /etc/passwd and /etc/group are still existed since they are generated by preinst, this would confuse the user, and we can't add a postuninst to remove /etc/passwd and /etc/group since they are required when runtime. I think that we should not remove any pkgs by default, we can add some interfaces/ways to let the user decide whether to remove them or any other pkgs, for example, add a REMOVE_PACKAGS variable, leave it as NULL or only add run-postinsts to it by default. -- Thanks Robert