On Wed, May 10, 2017 at 3:59 PM, Chris Trobridge <[email protected]
> 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
-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to