Graham Gower : package_ipk.bbclass: add lists_dir to sysroots' /etc/opkg. conf
A message that is not in the archive (sent off-list or not yet received): [email protected]
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
Quoted 10 lines · Andrea Adami
It seems this doesn't respect ${ONLINE_PACKAGE_MANAGEMENT}" == "none"
I see a spurious
/var/lib/opkgin 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
Quoted 6 lines
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.
---
classes/rootfs_ipk.bbclass +5 -2
@@ -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} }
Quoted 44 lines · Graham Gower
Quoted 10 lines · Andrea Adami
It seems this doesn't respect ${ONLINE_PACKAGE_MANAGEMENT}" == "none"
I see a spurious
/var/lib/opkgin 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:3Quoted 6 lines
We don't need any extra cruft there ;)
Regards
Andrea
/var/lib/opkgshouldn't be populated regardless of the value ofONLINE_PACKAGE_MANAGEMENT.Signed-off-by Graham Gower <[email protected]>---
classes/rootfs_ipk.bbclass +0
-0@@ -98,15 +98,18 @@ fakeroot rootfs_ipk_do_rootfs () {else
rm -f ${IMAGE_ROOTFS}${libdir}/opkg/lists/* ficlasses/rootfs_ipk.bbclass +3
-1- + + 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
ficlasses/rootfs_ipk.bbclass +1
-1- +
Quoted 3 lines
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,
Quoted 8 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
PATCH 1/1 rootfs_ipk.bbclass: remove host's lists in /var/lib/opkg/*
--- classes/rootfs_ipk.bbclass | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)
classes/rootfs_ipk.bbclass +6 -2
@@ -98,15 +98,19 @@ fakeroot rootfs_ipk_do_rootfs () { else rm -f ${IMAGE_ROOTFS}${libdir}/opkg/lists/* fi - + + # Remove lists, but leave SHR's tmp dir if it exists. + rm -f ${IMAGE_ROOTFS}/var/lib/opkg/* || true + # 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} }
Signature · 1 line
1.7.1
Re: [PATCH] rootfs_ipk.bbclass: remove host's lists in /var/lib/opkg/*
Quoted 2 lines · Graham Gower
Signed-off-by Graham Gower <[email protected]>
Quoted 39 lines
--- classes/rootfs_ipk.bbclass | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)classes/rootfs_ipk.bbclass +6
-2@@ -98,15 +98,19 @@ fakeroot rootfs_ipk_do_rootfs () { else rm -f ${IMAGE_ROOTFS}${libdir}/opkg/lists/* fi - + + # Remove lists, but leave SHR's tmp dir if it exists. + rm -f ${IMAGE_ROOTFS}/var/lib/opkg/* || true + # 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} }Signature · 8 lines
1.7.1 _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]