Bug 197532

Summary: RFE Choice of packages and its size increments on selection
Product: [Fedora] Fedora Reporter: Chitlesh GOORAH <chitlesh>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED CANTFIX QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-07-04 03:50:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Chitlesh GOORAH 2006-07-03 19:54:25 UTC
Description of problem:
This is a RFE with respect to Kadischi.
It would be nice to have anaconda calculate the expected size of iso image
during package selection (when run in --livecd mode)
The size of the iso image will be based on mksquashfs
 - to be able to parse a factor to do the calculation with respect to the actual
size of the selected packages.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Jeremy Katz 2006-07-04 03:50:07 UTC
The size can't be done during package selection -- dep resolution on the fly
would make it *way* too slow to be viable.

Comment 2 Jasper O. Hartline 2006-07-06 03:45:47 UTC
I agree, I think this is Kadischi's job for now. 
Right now observed SquashFS compression comes out to between 2.5 and 2.7 times
smaller than the original builddir's rootfs.

So what we've done is simply query the rootfs RPMdb headers for the SIZE and add
them up, divide by 2.5 and print how many bytes estimated it would be. This
actually works and works well for this task. The querying is done immediately
after Anaconda exits.