Bug 517 - RPM complains if host /boot partition is less than 125MB
Summary: RPM complains if host /boot partition is less than 125MB
Status: RESOLVED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 0.9
Hardware: All Multiple
: Medium minor
Target Milestone: 1.0 M1
Assignee: Mark Hatle
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2010-11-01 10:06 UTC by Rob Woolley
Modified: 2011-02-01 09:57 UTC (History)
8 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Woolley 2010-11-01 10:06:28 UTC
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.
Comment 1 Jeff Johnson 2010-11-19 13:15:10 UTC
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.
Comment 2 Mark Hatle 2011-02-01 09:57:04 UTC
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.