From patchwork Wed Feb 1 20:27:45 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3/3] rootfs_ipk.bbclass: fix detection of script runtime requirement Date: Wed, 01 Feb 2012 20:27:45 -0000 From: Otavio Salvador X-Patchwork-Id: 20511 Message-Id: To: openembedded-core@lists.openembedded.org The code has been broken by 2feba313c991170747381c7cf821a45c2cd04632 that changed the way this detection has being done. Signed-off-by: Otavio Salvador --- 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