[oe-commits] Hongxu Jia : update-rc.d:fix support postrm at image creation time
git at git.openembedded.org
git at git.openembedded.org
Sun Jan 20 13:18:09 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: deb8ac868a989f41c0664312a5fb855358be2296
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=deb8ac868a989f41c0664312a5fb855358be2296
Author: Hongxu Jia <hongxu.jia at windriver.com>
Date: Thu Jan 17 20:56:38 2013 +0800
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 <hongxu.jia at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/update-rc.d.bbclass | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass
index 3364269..83816d6 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
}
More information about the Openembedded-commits
mailing list