]> code.ossystems Code Review - openembedded-core.git/commitdiff
initscripts: avoid overwritting editable files during package updating
authorJian Liu <jian.liu@windriver.com>
Fri, 21 Nov 2014 09:17:11 +0000 (17:17 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 3 Dec 2014 12:22:41 +0000 (12:22 +0000)
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@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/initscripts/initscripts_1.0.bb

index a665acf6e4b911403cacb7546986195d6e11b0cc..afdc53830ae652605ef405cb86e93f9ce87ef082 100644 (file)
@@ -162,3 +162,5 @@ pkg_postinst_${PN} () {
                done
        fi
 }
+
+CONFFILES_${PN} += "${sysconfdir}/init.d/checkroot.sh"