* [ptxdist] How to override default file selected by another package
@ 2014-05-07 9:19 Guillermo Rodriguez Garcia
0 siblings, 0 replies; only message in thread
From: Guillermo Rodriguez Garcia @ 2014-05-07 9:19 UTC (permalink / raw)
To: ptxdist
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-05-07 9:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-07 9:19 [ptxdist] How to override default file selected by another package Guillermo Rodriguez Garcia
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox