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.
tracked at https://bugs.launchpad.net/rpm/+bug/677644 Yes other options are needed with --justdb. Arguably, --justdb COULD imply other options. That hasn't/wasn't done in RPM because options and functionality can/do change, and with the number of options present, the matrix is quite large and unmaintainable. There's another approach using a popt alias that is quite simple (see "man 3 popt" or look at /usr/lib/rpm/rpmpopt* for examples). Instead of having --foo imply --bar, then add a --foobar popt alias that is the combination of --foo and --bar. In this specific case, create, say, a --dorootfs popt alias which passes --justdb --ignoresize to rpm, and change the Poky quick start guide to use "--dorootfs". If you chose some name spacing in option names like --poky:rootfs the options COULD be added to rpmpopt.in @rpm5.org rather easily as well.
I believe this problem has been corrected in the latest version by adding --ignoresize to the appropriate install calls in meta/classes/rootfs_rpm.bbclass. If you experience this issue again, please reopen this defect.