Bug 1065703

Summary: kickstart 'partition' command insists on '--size' arg
Product: [Fedora] Fedora Reporter: Bruce Jerrick <bmj001>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: anaconda-maint-list, g.kaviyarasu, jonathan, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-21 16:40:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bruce Jerrick 2014-02-16 01:50:44 UTC
Description of problem:
The kickstart 'partition' command insists on having a '--size n' argument
even when it is not needed; e.g. when the disk is pre-partitioned.

Version-Release number of selected component:
anaconda-21.20-1.fc21

How reproducible:
100%

Steps to Reproduce:
1. Do a kickstart installation to a pre-partitioned disk (it doesn't have
   to be formatted), with 'partition' commands like this:

    clearpart --none
    partition / --fstype ext4 --onpart sda2

Actual results:
Installation fails with "The size None is not valid".

Expected results:
Installation succeeds (as it has in, e.g. Fedora 18).

Additional info:
The failure message is emitted by pyanaconda/kickstart.py .
A workaround is to use '--size 0'.  I see no difference in the resulting
partition table or filesystem sizes; that would seem to indicate it's
just a bug in the command parser.

Comment 1 Chris Lumens 2014-02-21 16:40:25 UTC
This should be fixed by the patch for bug 1067707.  Thanks for the report.

*** This bug has been marked as a duplicate of bug 1067707 ***