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.

(From OE-Core rev: a265af666a80298ccca0eb80d6f15ca3d4be8b57)

Signed-off-by: Jian Liu <jian.liu@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Jian Liu 2014-11-21 17:17:11 +08:00 committed by Richard Purdie
parent 535afd4b06
commit b4f4d0f804
1 changed files with 2 additions and 0 deletions

View File

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