diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2015-02-17 10:08:14 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-17 22:35:03 +0000 |
commit | 3d7c798dff4afa51b8e2e543ac7f2c5e27275750 (patch) | |
tree | d32ae8ad396cfd4f2e325c6b59b4039bfc7e7175 /meta/classes | |
parent | aa48c4ff4a50b5490a4744a169251100ee878fb7 (diff) | |
download | poky-3d7c798dff4afa51b8e2e543ac7f2c5e27275750.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.
(From OE-Core rev: ebb2d557bbf410d98040cdaabbddd7e3ee0a9709)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 | |||
48 | updatercd_postrm() { | 48 | updatercd_postrm() { |
49 | if type update-rc.d >/dev/null 2>/dev/null; then | 49 | if type update-rc.d >/dev/null 2>/dev/null; then |
50 | if [ -n "$D" ]; then | 50 | if [ -n "$D" ]; then |
51 | OPT="-r $D" | 51 | OPT="-f -r $D" |
52 | else | 52 | else |
53 | OPT="" | 53 | OPT="-f" |
54 | fi | 54 | fi |
55 | update-rc.d $OPT ${INITSCRIPT_NAME} remove | 55 | update-rc.d $OPT ${INITSCRIPT_NAME} remove |
56 | fi | 56 | fi |