From: Hongxu Jia Date: Thu, 17 Jan 2013 12:56:38 +0000 (+0800) Subject: update-rc.d:fix support postrm at image creation time X-Git-Tag: 2015-4~7976 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=deb8ac868a989f41c0664312a5fb855358be2296;p=openembedded-core.git 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] Signed-off-by: Hongxu Jia Signed-off-by: Richard Purdie --- 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 } updatercd_postrm() { -update-rc.d $D ${INITSCRIPT_NAME} remove +if [ "$D" != "" ]; then + update-rc.d -f -r $D ${INITSCRIPT_NAME} remove +else + update-rc.d ${INITSCRIPT_NAME} remove +fi }