From: Jian Liu Date: Fri, 21 Nov 2014 09:17:11 +0000 (+0800) Subject: initscripts: avoid overwritting editable files during package updating X-Git-Tag: 2015-4~1103 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=a265af666a80298ccca0eb80d6f15ca3d4be8b57;p=openembedded-core.git 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 Signed-off-by: Ross Burton --- diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb index a665acf6e4..afdc53830a 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"