[Openembedded-users] Allowing recipe to overwrite /etc config files
raj.khem at gmail.com
Wed Feb 16 23:40:16 CET 2011
On (15/02/11 14:03), Rob Smith wrote:
> We are putting together an OpenEmbedded based system that requires
> changes to many of the standard /etc config files. Some are the standard
> files like /etc/network/interfaces, others of installed packages
> like /etc/lighttpd.conf. Therefore, changing these config files in each
> recipe for each package would take some work.
> What I've done instead, is write a recipe that is included as the very
> last package in my image recipe, that just installs all the modified
> files to the /etc directory. That way, all the modified files for all
> the packages are held in one place for easy maintenance.
> However, opkg complains about two packages wanting to write the same
> Can anyone tell me the solution to this? Is there a bitbake parameter to
> include in my recipe that will allow overwriting of files already
> installed by other packages? Or is there another standard method that
> will achieve the same thing?
Well there are few options you have.
1. Edit the existing recipe this will alter the metadata and you have to
do merges whenever you pull from upstream
2. use bbappend and bblayers as I blogged about it here
This will be cleaner as you will have your modifications overlayed in
your own layer This would be best option for you but it needs bitbake
3. You can also use amend.inc to tweak with existing recipes
look in OE ml logs on the usage
> Thanks very much for any help,
> Rob Smith
> Openembedded-users mailing list
> Openembedded-users at linuxtogo.org
More information about the Openembedded-users