From patchwork Fri Feb 17 17:47:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3/3] rootfs_ipk.bbclass: fix unpacked postinst support if no package management Date: Fri, 17 Feb 2012 17:47:05 -0000 From: Otavio Salvador X-Patchwork-Id: 21377 Message-Id: To: openembedded-core@lists.openembedded.org When building without package management we can end with a system without opkg and thus without support for running unfinished postinsts on first boot, we fix this providing a S98configure script for this use case. Signed-off-by: Otavio Salvador --- meta/classes/rootfs_ipk.bbclass | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass index 2df8ca4..11ab8a1 100644 --- a/meta/classes/rootfs_ipk.bbclass +++ b/meta/classes/rootfs_ipk.bbclass @@ -96,6 +96,22 @@ fakeroot rootfs_ipk_do_rootfs () { # Also delete the status files rm -rf ${IMAGE_ROOTFS}${opkglibdir} + else + if [ ! -e ${IMAGE_ROOTFS}${bindir}/opkg-cl ]; then + # We need to run postinsts but lack opkg, do it byhand + cat > ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S98configure <