From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Why0m-00039D-UC for ptxdist@pengutronix.de; Wed, 07 May 2014 11:19:37 +0200 Received: by mail-wi0-f174.google.com with SMTP id r20so5418513wiv.7 for ; Wed, 07 May 2014 02:19:33 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 7 May 2014 11:19:33 +0200 Message-ID: From: Guillermo Rodriguez Garcia Subject: [ptxdist] How to override default file selected by another package Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hello all, Is it possible for a ptxdist package to override a file in the target rootfs, if this file is actually "selected" by a different package? Let me try to clarify this with an example: Let's assume I have selected the busybox init method, and checked the option to install /etc/init.d/networking. This selects INITMETHOD_BBINIT_ETC_INITD_NETWORKING, which installs a default /etc/init.d/networking script to the target's rootfs. So far so good, this is standard behaviour. Now I want to define a new custom ptxdist package. When this package is selected, it should be able to override the default networking script and use a custom version (but if the package is not selected, the default script should be used instead -- so I cannot just put a custom version of the script in my BSP's projectroot dir). The problem is that if I just use install_copy in the targetinstall stage of my new package, then the actual script that is installed to the target rootfs will depend on the order used by ptxdist to walk through the selected packages (the last one will win). Is this order defined? Or am I overlooking something here? Is it possible to do what I want to do? Thank you, Guillermo Rodriguez Garcia guille.rodriguez@gmail.com -- ptxdist mailing list ptxdist@pengutronix.de