All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rootfs postprocess command
@ 2009-09-16 17:11 Chris Conroy
  2009-09-17 13:06 ` Otavio Salvador
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Conroy @ 2009-09-16 17:11 UTC (permalink / raw)
  To: OE-Dev

I ran into a problem yesterday where the ROOTFS_POSTPROCESS_COMMAND
started failing after I turned off ONLINE_PACKAGE_MANAGEMENT. It seems
the problem is that if package management is turned off, then the opkg
directory gets deleted. Subsequent opkg commands in the
ROOTFS_POSTPROCESS_COMMAND fail to open the lock file because the
directory is gone.

This patch simply moves the postprocess command above the destruction of
the opkg directory to allow any such commands to complete successfully.

diff --git a/classes/rootfs_ipk.bbclass b/classes/rootfs_ipk.bbclass
index 16dd511..9231787 100644
--- a/classes/rootfs_ipk.bbclass
+++ b/classes/rootfs_ipk.bbclass
@@ -81,6 +81,8 @@ fakeroot rootfs_ipk_do_rootfs () {
        install -d ${IMAGE_ROOTFS}/${sysconfdir}
        echo ${BUILDNAME} > ${IMAGE_ROOTFS}/${sysconfdir}/version
 
+       ${ROOTFS_POSTPROCESS_COMMAND}
+       
        if [ "${ONLINE_PACKAGE_MANAGEMENT}" != "none" ]; then
                if [ "${ONLINE_PACKAGE_MANAGEMENT}" == "add" ]; then
                        rm -f ${IMAGE_ROOTFS}${libdir}/opkg/status
@@ -97,8 +99,6 @@ fakeroot rootfs_ipk_do_rootfs () {
                rm -rf ${IMAGE_ROOTFS}/usr/lib/opkg
        fi
        
-       ${ROOTFS_POSTPROCESS_COMMAND}
-       
        log_check rootfs        
 }




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] rootfs postprocess command
  2009-09-16 17:11 [PATCH] rootfs postprocess command Chris Conroy
@ 2009-09-17 13:06 ` Otavio Salvador
  0 siblings, 0 replies; 2+ messages in thread
From: Otavio Salvador @ 2009-09-17 13:06 UTC (permalink / raw)
  To: openembedded-devel

+1

On Wed, Sep 16, 2009 at 2:11 PM, Chris Conroy
<Chris.Conroy@hillcrestlabs.com> wrote:
> I ran into a problem yesterday where the ROOTFS_POSTPROCESS_COMMAND
> started failing after I turned off ONLINE_PACKAGE_MANAGEMENT. It seems
> the problem is that if package management is turned off, then the opkg
> directory gets deleted. Subsequent opkg commands in the
> ROOTFS_POSTPROCESS_COMMAND fail to open the lock file because the
> directory is gone.
>
> This patch simply moves the postprocess command above the destruction of
> the opkg directory to allow any such commands to complete successfully.
>
> diff --git a/classes/rootfs_ipk.bbclass b/classes/rootfs_ipk.bbclass
> index 16dd511..9231787 100644
> --- a/classes/rootfs_ipk.bbclass
> +++ b/classes/rootfs_ipk.bbclass
> @@ -81,6 +81,8 @@ fakeroot rootfs_ipk_do_rootfs () {
>        install -d ${IMAGE_ROOTFS}/${sysconfdir}
>        echo ${BUILDNAME} > ${IMAGE_ROOTFS}/${sysconfdir}/version
>
> +       ${ROOTFS_POSTPROCESS_COMMAND}
> +
>        if [ "${ONLINE_PACKAGE_MANAGEMENT}" != "none" ]; then
>                if [ "${ONLINE_PACKAGE_MANAGEMENT}" == "add" ]; then
>                        rm -f ${IMAGE_ROOTFS}${libdir}/opkg/status
> @@ -97,8 +99,6 @@ fakeroot rootfs_ipk_do_rootfs () {
>                rm -rf ${IMAGE_ROOTFS}/usr/lib/opkg
>        fi
>
> -       ${ROOTFS_POSTPROCESS_COMMAND}
> -
>        log_check rootfs
>  }
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



-- 
Otavio Salvador                  O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854         http://projetos.ossystems.com.br



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-17 13:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-16 17:11 [PATCH] rootfs postprocess command Chris Conroy
2009-09-17 13:06 ` Otavio Salvador

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.