osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ironic] [tripleo] IPA images without RPM and YUM/DNF?



On 10/15/19 4:13 AM, Dmitry Tantsur wrote:
> (adding TripleO because of potential effect)
> 
> Hi all,
> 
> I'm working on making ironic-python-agent images smaller than they 
> currently are. The proposed patches already reduce the default image (as 
> built by IPA-builder) size from around 420 MiB to around 380 MiB.
> 
> My next idea is to get rid of RPM and YUM databases (in case of a 
> CentOS/RHEL image). They amount for nearly 100 MiB of the uncompressed 
> image:
> $ du -sh var/lib/rpm
> 91M var/lib/rpm
> $ du -sh var/lib/yum
> 6.6M var/lib/yum
> 
> How important for anyone is the ability to install/inspect packages 
> inside a ramdisk?

Back when we were building the ramdisks with DIB I'm pretty sure we were 
wiping the RPM db too, so unless something has changed since then I 
would expect this to be fine.

> 
> Dmitry