diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-12-14 21:15:09 -0500 |
---|---|---|
committer | Chen Qi <Qi.Chen@windriver.com> | 2015-02-17 10:05:30 +0800 |
commit | dcd02971b58297c5b855c023d02a68196c52a58a (patch) | |
tree | e8d30c405bd6e0e7da82d1e163d1d5bba15f40f6 | |
parent | 7d69cebc74b1e61acb18e4660a744f9920b56ebe (diff) | |
download | openembedded-core-contrib-dcd02971b58297c5b855c023d02a68196c52a58a.tar.gz |
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>
-rw-r--r-- | meta/classes/update-rc.d.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass index bc1aa7dad6..a9c0323f95 100644 --- a/meta/classes/update-rc.d.bbclass +++ b/meta/classes/update-rc.d.bbclass @@ -48,9 +48,9 @@ fi updatercd_postrm() { if type update-rc.d >/dev/null 2>/dev/null; then if [ -n "$D" ]; then - OPT="-r $D" + OPT="-f -r $D" else - OPT="" + OPT="-f" fi update-rc.d $OPT ${INITSCRIPT_NAME} remove fi |