[4/6] package_ipk: Ensure the status file exists

Submitted by Richard Purdie on April 18, 2013, 2:33 p.m.

Details

Message ID 1366295611-4646-4-git-send-email-richard.purdie@linuxfoundation.org
State Accepted
Commit 540cf355599e555615ed9684c3b480463588eb78
Headers show

Commit Message

Richard Purdie April 18, 2013, 2:33 p.m.
The postinstall for the opkg run-postinst hook checks for the existence of this
file. We therefore ensure it always exists during image generation.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/classes/package_ipk.bbclass |    1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
index d003ae7..5873f71 100644
--- a/meta/classes/package_ipk.bbclass
+++ b/meta/classes/package_ipk.bbclass
@@ -85,6 +85,7 @@  package_install_internal_ipk() {
 	local package_multilib="${INSTALL_PACKAGES_MULTILIB_IPK}"
 
 	mkdir -p ${target_rootfs}${OPKGLIBDIR}/opkg
+	touch ${target_rootfs}${OPKGLIBDIR}/opkg/status
 
 	local ipkg_args="${OPKG_ARGS}"