[OE-core] [PATCH 0/6] Avoid config files being overwritten

Jian Liu jian.liu at windriver.com
Fri Nov 14 09:43:32 UTC 2014


Configure files and scripts may be over written when updating packages with rpm.

For example, if updating base-files with a new version of rpm, the file 
/etc/nsswitch.conf which is created by base-files will be substituted by a new file.

This is not what we want since our config files may be lost after updating. 

A resolution is to revise spec file of rpm and put %config before config files 
like "%config /etc/nsswitch.conf".

Theoretically all editable files created by rpm packages should be protected 
with "%config". But currently we only concern about the following packages:
  base-files
  initscripts
  logrotate
  lvm2
  libpam
  nfs-utils




More information about the Openembedded-core mailing list