[poky] do_rootfs() RPM error message

Rob Woolley rcwoolley at gmail.com
Fri Oct 29 12:48:28 PDT 2010


Hi,

I ran into a minor build system glitch and wanted to share the
workaround I used.

I was following the steps in the Poky quick start guide.  When the
build got to the do_rootfs() task, the rpm command complained on all
packages with:

 	installing package <PKG> needs 125MB on the /boot filesystem

My /boot partition is only 100MB which is what triggered the problem.

However, since the disk space on the host filesystem is irrelevant for
assembling the rootfs for the target, I added --ignoresize to the rpm
line that triggered the problem.

I suspect that it's related to the fact that rpm -U was used with
--justdb and without --root.  It may be needed on similar rpm calls as
well.

Once I made the change my build completed successfully.

Cheers,
Rob

diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index 6e9cbba..ceab7c9 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -80,7 +80,7 @@ fakeroot rootfs_rpm_do_rootfs () {
        # an actual package install!
        ${RPM} -D "_dbpath ${IMAGE_ROOTFS}/install" -D "`cat
${DEPLOY_DIR_RPM}/solvedb.macro`" \
                -D "__dbi_cdb create mp_mmapsize=128Mb mp_size=1Mb nofsync" \
-               -U --justdb --noscripts --notriggers --noparentdirs
--nolinktos \
+               -U --justdb --noscripts --notriggers --noparentdirs
--nolinktos --ignoresize \
                ${IMAGE_ROOTFS}/install/install.manifest

        if [ ! -z "${PACKAGE_INSTALL_ATTEMPTONLY}" ]; then



More information about the poky mailing list