[Openembedded-users] Allowing recipe to overwrite /etc config files

Khem Raj raj.khem at gmail.com
Wed Feb 16 22:40:16 UTC 2011


On (15/02/11 14:03), Rob Smith wrote:
> Hello,
> 
> 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
> file. 
> 
> 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
http://sakrah.homelinux.org/blog/2010/11/bblayers-bbappend/
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
1.10 atleast

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,
> Regards
> Rob Smith
> 
> 
> _______________________________________________
> Openembedded-users mailing list
> Openembedded-users at linuxtogo.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-users

-- 
-Khem




More information about the Openembedded-users mailing list