summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2013-01-17 20:56:38 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-18 13:28:08 +0000
commitee5333b0bdb1c1dfe678b319ac6f7ebd97a6ff57 (patch)
treee587aa4f8afde263aa9a2a36f2e87cd5b922686f /meta
parentfbfaefb7e927e16a607f602db6e17a85dfba5433 (diff)
downloadpoky-ee5333b0bdb1c1dfe678b319ac6f7ebd97a6ff57.tar.gz
update-rc.d:fix support postrm at image creation time
updatercd_postrm failed at image creation time because "-f -r ${D}" is not used as update-rc.d's option. [YOCTO #3633] (From OE-Core rev: deb8ac868a989f41c0664312a5fb855358be2296) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/update-rc.d.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass
index 3364269167..83816d6ad6 100644
--- a/meta/classes/update-rc.d.bbclass
+++ b/meta/classes/update-rc.d.bbclass
@@ -28,7 +28,11 @@ fi
28} 28}
29 29
30updatercd_postrm() { 30updatercd_postrm() {
31update-rc.d $D ${INITSCRIPT_NAME} remove 31if [ "$D" != "" ]; then
32 update-rc.d -f -r $D ${INITSCRIPT_NAME} remove
33else
34 update-rc.d ${INITSCRIPT_NAME} remove
35fi
32} 36}
33 37
34 38