aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorChris Conroy <Chris.Conroy@hillcrestlabs.com>2009-09-16 07:11:14 +0000
committerMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>2010-03-04 16:05:25 +0100
commit7e0dca393772c8145fb8dccd1a5898bc4fb7933a (patch)
tree4e3aa9a7c6446ccc7e87ab60e261dee94b9739a8 /classes
parent21272c27fabe7cf908b8b79d21fdd6fcfc2d7c43 (diff)
downloadopenembedded-7e0dca393772c8145fb8dccd1a5898bc4fb7933a.tar.gz
rootfs_ipk.bbclass: move rootfs postprocess command
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. Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Diffstat (limited to 'classes')
-rw-r--r--classes/rootfs_ipk.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/rootfs_ipk.bbclass b/classes/rootfs_ipk.bbclass
index 38d6121529..3a73ed8854 100644
--- a/classes/rootfs_ipk.bbclass
+++ b/classes/rootfs_ipk.bbclass
@@ -82,6 +82,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
@@ -99,8 +101,6 @@ fakeroot rootfs_ipk_do_rootfs () {
rm -rf ${IMAGE_ROOTFS}/usr/lib/opkg
fi
- ${ROOTFS_POSTPROCESS_COMMAND}
-
log_check rootfs
rm -rf ${IPKG_TMP_DIR}
}