[oe] [oe-commits] Graham Gower : package_ipk.bbclass: add lists_dir to sysroots' /etc/opkg. conf
Martin Jansa
martin.jansa at gmail.com
Mon Aug 16 22:17:30 UTC 2010
On Tue, Aug 10, 2010 at 1:33 AM, Graham Gower <graham.gower at gmail.com> wrote:
> On 08/10/2010 07:24 AM, Andrea Adami wrote:
>> It seems this doesn't respect ${ONLINE_PACKAGE_MANAGEMENT}" == "none"
>>
>> I see a spurious /var/lib/opkg in the cpio of initramfs-kexecboot-image.
>>
>> oe │ 0│Aug 9 23:32│
>> oe-all │ 64030│Aug 9 23:32
>> oe-armv5te │3637007│Aug 9 23:32
>> oe-tosa │ 463708│Aug 9 23:3
>>
>>
>> We don't need any extra cruft there ;)
>>
>> Regards
>>
>> Andrea
>>
>
> /var/lib/opkg shouldn't be populated regardless of the value of ONLINE_PACKAGE_MANAGEMENT.
>
> Signed-off-by: Graham Gower <graham.gower at gmail.com>
> ---
> diff --git a/classes/rootfs_ipk.bbclass b/classes/rootfs_ipk.bbclass
> index db04fb6..b0baab0 100644
> --- a/classes/rootfs_ipk.bbclass
> +++ b/classes/rootfs_ipk.bbclass
> @@ -98,15 +98,18 @@ fakeroot rootfs_ipk_do_rootfs () {
> else
> rm -f ${IMAGE_ROOTFS}${libdir}/opkg/lists/*
> fi
> -
> +
> + rm -rf ${IMAGE_ROOTFS}/var/lib/opkg/*
> +
> # Keep these lines until package manager selection is implemented
> ln -s opkg ${IMAGE_ROOTFS}${sysconfdir}/ipkg
> ln -s opkg ${IMAGE_ROOTFS}${libdir}/ipkg
> else
> rm -rf ${IMAGE_ROOTFS}${libdir}/opkg
> rm -rf ${IMAGE_ROOTFS}/usr/lib/opkg
> + rm -rf ${IMAGE_ROOTFS}/var/lib/opkg
> fi
> -
> +
> log_check rootfs
> rm -rf ${IPKG_TMP_DIR}
> }
We (SHR) are using tmp_dir pointing to /var/lib/opkg/tmp (because /tmp
is size-limited tmpfs)
in opkg-collateral.bb:
do_install_append_shr () {
install -d ${D}/var/lib/opkg/tmp
}
This change removes /var/lib/opkg/tmp from prepared image (and opkg
calls then fail on target).
Do you propose different tmp dir or can you update the logic somehow?
Thanks,
>
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
More information about the Openembedded-devel
mailing list