]> code.ossystems Code Review - openembedded-core.git/commit
update-rc.d: use '-f' option in updatercd_postrm
authorChen Qi <Qi.Chen@windriver.com>
Tue, 17 Feb 2015 02:08:14 +0000 (10:08 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Feb 2015 22:29:04 +0000 (22:29 +0000)
commitebb2d557bbf410d98040cdaabbddd7e3ee0a9709
tree090d76702ff1fa49127d607def92893fcc9ea896
parent14e8d826c4a5231ef331d8064d150737fe3ed656
update-rc.d: use '-f' option in updatercd_postrm

Use '-f' ('--force') option so that while removing packages using deb,
we don't fail because of the following error:

   update-rc.d: $initd/$bn exists during rc.d purge (use -f to force)

Using '-f' option would make this a warning but continue to execute.

   update-rc.d: $initd/$bn exists during rc.d purge (continuing)

We need this option because dpkg package backend have special handling for
configuration files. And if files under /etc/init.d are treated as configuration
files, we will have errors.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/update-rc.d.bbclass