[PATCH] runtime-cleanup: Preserve RPM database

Vratislav Podzimek vpodzime at redhat.com
Tue Oct 21 07:11:17 UTC 2014


On Mon, 2014-10-20 at 17:41 -0700, Brian C. Lane wrote:
> On Mon, Oct 20, 2014 at 08:16:31PM -0400, Colin Walters wrote:
> > While we are trying to keep the image size small, while debugging
> > things, it's *really* useful to know the versions of things inside.
> > 
> > I tried to trace back through the git history for a rationale for the
> > removal of the rpmdb, and got as far back as 2009 with no specific
> > debate.
> > 
> > So, putting this patch out there to start one.  Another alternative is
> > to extract just "rpm -qa" as text.  That would be just about as
> > useful, and much smaller (particularly when squashfs'd).
> > 
> > We still remove the yumdb.
> 
> Nak from me. If you want to know the versions of things you can look at
> the build logs, everything will be listed there. There is no need to
> bloat the image for everyone when the debugging info can be accessed on
> the side.
That's a valid point, however, I'd like to add one more use case for the
"rpmdb-like info" in the image -- bug reporting could mention versions
of other packages (python-blivet, pykickstart, ...)  in bugzillas.

> 
> Having said that, I do wonder how big it is. I'll do a lorax run
> tomorrow and see.
I think the 'rpm -qa|pigz > rpm_qa.txt.gz' should be really small. On
my "full-fat" F20 installation it has 32K.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list