[yocto] BB Equivalent for %config(noreplace)

Andrea Galbusera gizero at gmail.com
Thu May 11 14:30:53 PDT 2017


On Wed, May 10, 2017 at 3:59 PM, Chris Trobridge <christrobridge at hotmail.com
> wrote:

> When applying rpm updates generated by yocto, configuration
> files/directories are overwritten with files from the rpm.
>
> My spec file for generating equivalent native packages with rpmbuild
> specifies these files with %config(noreplace) so that this overwriting does
> no occur.
>
> Is it possible to get this information into the rpm files generated by
> yocto?
>

The usual way is to add the configuration files to the CONFFILES variable
in your recipe. This does what you want in a package management system
agnostic way. See [1] for details.

http://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#var-CONFFILES
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170511/e002470a/attachment.html>


More information about the yocto mailing list