[OE-core] [PATCH 3/3] rootfs_ipk.bbclass: fix detection of script runtime requirement
Martin Jansa
martin.jansa at gmail.com
Thu Feb 2 08:48:16 UTC 2012
On Wed, Feb 01, 2012 at 08:27:45PM +0000, Otavio Salvador wrote:
> The code has been broken by 2feba313c991170747381c7cf821a45c2cd04632
> that changed the way this detection has being done.
Wasn't this fixed by
http://git.openembedded.org/openembedded-core/commit/?id=6d3eac57bdba8e2582c210a2f82a3a4546f68581
?
>
> 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
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
--
Martin 'JaMa' Jansa jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20120202/4e8a16d3/attachment-0002.sig>
More information about the Openembedded-core
mailing list