aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorJian Liu <jian.liu@windriver.com>2014-11-21 17:17:10 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-12-03 12:22:41 +0000
commit2ffc174e9506a00081457145f0fcf3bef5846f4a (patch)
tree2a2ec0de32942c2db9ae15b43114333fbfbf53eb /meta/recipes-core
parentd8921e4ea68647dfcf02ae046c9e09bf59f3e6e4 (diff)
downloadopenembedded-core-contrib-2ffc174e9506a00081457145f0fcf3bef5846f4a.tar.gz
base-files: avoid overwritting editable files during package updating
Use CONFFILES to mark editable files as such, /etc/motd /etc/nsswitch.conf /etc/profile If there is no %config micro before the file name in the spec file, this file will be overwritten after updating package. This will make our settings lost. Signed-off-by: Jian Liu <jian.liu@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/base-files/base-files_3.0.14.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-core/base-files/base-files_3.0.14.bb b/meta/recipes-core/base-files/base-files_3.0.14.bb
index 07f5c54c97d..6157ff381a0 100644
--- a/meta/recipes-core/base-files/base-files_3.0.14.bb
+++ b/meta/recipes-core/base-files/base-files_3.0.14.bb
@@ -151,4 +151,5 @@ FILES_${PN}-doc = "${docdir} ${datadir}/common-licenses"
PACKAGE_ARCH = "${MACHINE_ARCH}"
CONFFILES_${PN} = "${sysconfdir}/fstab ${@['', '${sysconfdir}/hostname'][(d.getVar('hostname', True) != '')]} ${sysconfdir}/shells"
+CONFFILES_${PN} += "${sysconfdir}/motd ${sysconfdir}/nsswitch.conf ${sysconfdir}/profile"