[oe-commits] Jian Liu : initscripts: avoid overwritting editable files during package updating

git at git.openembedded.org git at git.openembedded.org
Wed Dec 3 12:24:35 UTC 2014


Module: openembedded-core.git
Branch: master
Commit: a265af666a80298ccca0eb80d6f15ca3d4be8b57
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=a265af666a80298ccca0eb80d6f15ca3d4be8b57

Author: Jian Liu <jian.liu at windriver.com>
Date:   Fri Nov 21 17:17:11 2014 +0800

initscripts: avoid overwritting editable files during package updating

Use CONFFILES to mark editable files as such,
  /etc/init.d/checkroot.sh

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 at windriver.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>

---

 meta/recipes-core/initscripts/initscripts_1.0.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb
index a665acf..afdc538 100644
--- a/meta/recipes-core/initscripts/initscripts_1.0.bb
+++ b/meta/recipes-core/initscripts/initscripts_1.0.bb
@@ -162,3 +162,5 @@ pkg_postinst_${PN} () {
 		done
 	fi
 }
+
+CONFFILES_${PN} += "${sysconfdir}/init.d/checkroot.sh"



More information about the Openembedded-commits mailing list