[OE-core] [PATCH 3/3] rootfs_ipk.bbclass: fix detection of script runtime requirement
Otavio Salvador
otavio at ossystems.com.br
Wed Feb 1 20:27:45 UTC 2012
The code has been broken by 2feba313c991170747381c7cf821a45c2cd04632
that changed the way this detection has being done.
Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
---
meta/classes/rootfs_ipk.bbclass | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass
index 48fb2fb..0881089 100644
--- a/meta/classes/rootfs_ipk.bbclass
+++ b/meta/classes/rootfs_ipk.bbclass
@@ -74,9 +74,15 @@ fakeroot rootfs_ipk_do_rootfs () {
${OPKG_POSTPROCESS_COMMANDS}
${ROOTFS_POSTINSTALL_COMMAND}
-
+
+ if grep -q Status:.install.ok.unpacked ${IMAGE_ROOTFS}${opkglibdir}status; then
+ runtime_script_required=1
+ else
+ runtime_script_required=0
+ fi
+
if ${@base_contains("IMAGE_FEATURES", "read-only-rootfs", "true", "false" ,d)}; then
- if grep Status:.install.ok.unpacked ${IMAGE_ROOTFS}${opkglibdir}status; then
+ if [ $runtime_script_required -eq 1 ]; then
echo "Some packages could not be configured offline and rootfs is read-only."
exit 1
fi
--
1.7.2.5
More information about the Openembedded-core
mailing list