Bug 487669

Summary: incorrect swap size - broken autopartitioning code
Product: [Fedora] Fedora Reporter: Daniel Mach <dmach>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: medium    
Version: rawhideCC: anaconda-maint-list
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: 2009-06-08 14:38:21 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:
Bug Depends On:    
Bug Blocks: 471381    

Description Daniel Mach 2009-02-27 11:46:30 UTC
How to reproduce:
- create a VM with a 10G disk, 768M RAM
- boot install media
- create primary partition: /, 9500M
- create primary partition: swap, fill up to maximum size

Results:
An approx. 500M swap is created.
200M remains unallocated.

Quite funny is when you edit the swap size and set:
- fill all space up to: 999M (which is less than 500+200)
Then anaconda hangs for few minutes and switches swap partition with free space:
- swap size changes to 200M
- free space changes to 500M

Please reconsider this autopartitioning magic.
It's definitely useful when a user want's to create layout automatically.
But when he wants to create custom layout, these limits are annoying.

For example, memory of my virtual machine is limited and I *really* want to create larger swap space than usual.

Comment 1 Daniel Mach 2009-02-27 12:08:13 UTC
edit:
- fill all space up to: 999M (which is less than 500+200)
should be:
- fill all space up to: 999M (which is *more* than 500+200)

Comment 2 Chris Lumens 2009-03-12 18:27:14 UTC
We've made significant changes to the partitioning code.  Please give it a try in the latest rawhide and see if you continue to hit this problem.  Thanks.

Comment 3 Daniel Mach 2009-06-08 14:38:21 UTC
I didn't hit this problem last time I installed rawhide.
Let's close this bug.