From: Chris Conroy <Chris.Conroy@hillcrestlabs.com>
To: OE-Dev <openembedded-devel@lists.openembedded.org>
Subject: [PATCH] rootfs postprocess command
Date: Wed, 16 Sep 2009 13:11:14 -0400 [thread overview]
Message-ID: <1253121074.1495.75.camel@conroy-linux> (raw)
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
}
next reply other threads:[~2009-09-16 17:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-16 17:11 Chris Conroy [this message]
2009-09-17 13:06 ` [PATCH] rootfs postprocess command Otavio Salvador
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1253121074.1495.75.camel@conroy-linux \
--to=chris.conroy@hillcrestlabs.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.