* [Buildroot] init script installation policy @ 2014-04-02 13:54 Nathan Ford 2014-04-02 15:55 ` Thomas De Schampheleire 0 siblings, 1 reply; 3+ messages in thread From: Nathan Ford @ 2014-04-02 13:54 UTC (permalink / raw) To: buildroot What is the policy for installing init scripts when there is already an init script in the target location? Currently there does not seem to be any consistency. I bring this up as I updated a project to a newer buildroot recently and a package I use went from not installing the init script if it was present, to always installing. For my projects I use a custom skeleton fs and like the fact that I can just store my custom init scripts for the packages I use in the skeleton. Thanks, --Nate ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] init script installation policy 2014-04-02 13:54 [Buildroot] init script installation policy Nathan Ford @ 2014-04-02 15:55 ` Thomas De Schampheleire 2014-04-03 6:10 ` Arnout Vandecappelle 0 siblings, 1 reply; 3+ messages in thread From: Thomas De Schampheleire @ 2014-04-02 15:55 UTC (permalink / raw) To: buildroot Hi Nate, On Wed, Apr 2, 2014 at 3:54 PM, Nathan Ford <nford@westpond.com> wrote: > What is the policy for installing init scripts when there is already an > init script in the target location? Currently there does not seem to be > any consistency. I bring this up as I updated a project to a newer > buildroot recently and a package I use went from not installing the init > script if it was present, to always installing. > > For my projects I use a custom skeleton fs and like the fact that I can > just store my custom init scripts for the packages I use in the skeleton. > In this case, the recommendation is to use a rootfs overlay rather than a custom skeleton. Where the skeleton provides the _initial_ layout, and packages then add their stuff afterwards, a rootfs overlay is copied _after_ all packages have done their job. This means that your custom script in the overlay would take precedence over the script provided with the package. Have a look at http://buildroot.uclibc.org/downloads/manual/manual.html#rootfs-custom Best regards, Thomas ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] init script installation policy 2014-04-02 15:55 ` Thomas De Schampheleire @ 2014-04-03 6:10 ` Arnout Vandecappelle 0 siblings, 0 replies; 3+ messages in thread From: Arnout Vandecappelle @ 2014-04-03 6:10 UTC (permalink / raw) To: buildroot On 02/04/14 17:55, Thomas De Schampheleire wrote: > Hi Nate, > > On Wed, Apr 2, 2014 at 3:54 PM, Nathan Ford <nford@westpond.com> wrote: >> What is the policy for installing init scripts when there is already an >> init script in the target location? Currently there does not seem to be >> any consistency. I bring this up as I updated a project to a newer >> buildroot recently and a package I use went from not installing the init >> script if it was present, to always installing. >> >> For my projects I use a custom skeleton fs and like the fact that I can >> just store my custom init scripts for the packages I use in the skeleton. >> > > In this case, the recommendation is to use a rootfs overlay rather > than a custom skeleton. Where the skeleton provides the _initial_ > layout, and packages then add their stuff afterwards, a rootfs overlay > is copied _after_ all packages have done their job. This means that > your custom script in the overlay would take precedence over the > script provided with the package. That said, our policy currently in many cases is to keep existing files in /etc rather than overwriting them. However, I think this is wrong, really: packages should overwrite existing files and custom modifications should be done in a rootfs overlay, as you say. When two packages compete for the same file, this at least allows us to enforce some policy, by adding a dependency (like e.g. is already done for busybox conflicts). Also, it makes it possible to do a foo-rebuild after a version bump and get the updated config files. Regards, Arnout > > Have a look at http://buildroot.uclibc.org/downloads/manual/manual.html#rootfs-custom > > Best regards, > Thomas > _______________________________________________ > buildroot mailing list > buildroot at busybox.net > http://lists.busybox.net/mailman/listinfo/buildroot > > -- Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-04-03 6:10 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-04-02 13:54 [Buildroot] init script installation policy Nathan Ford 2014-04-02 15:55 ` Thomas De Schampheleire 2014-04-03 6:10 ` Arnout Vandecappelle
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox