[OE-core] [PATCH V2 0/6] Avoid overwritting editable files during package updating

Jian Liu jian.liu at windriver.com
Fri Nov 21 09:17:09 UTC 2014


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 configuration 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 should be protected with "%config". But currently 
we only concern about the following packages:
  base-files
  initscripts
  logrotate
  lvm2
  libpam
  nfs-utils

---
 recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bb |    2 ++
 recipes-core/base-files/base-files_3.0.14.bb      |    1 +
 recipes-core/initscripts/initscripts_1.0.bb       |    2 ++
 recipes-extended/logrotate/logrotate_3.8.7.bb     |    2 ++
 recipes-extended/pam/libpam_1.1.6.bb              |    6 ++++++
 5 files changed, 13 insertions(+)





More information about the Openembedded-core mailing list