From Bugzilla Helper: User-Agent: Mozilla/4.75 [en] (X11; U; Linux 2.2.16-22 i686) The documentation of "part" in RH7.0 reference guide implies that the correct format would be similar to: part /boot --size 20 --asprimary 1 However, looking at the code (and based on my experience) the correct format is part /boot --size=20 --asprimary=1 The python code is using getopt, and the "--" arguments expect an "=" with no whitespace. Reproducible: Always Steps to Reproduce: 1. try a kickstart file with the incorrect syntax Actual Results: anaconda complains that partition command requires one anonymous argument A cryptic message that is meant to inform the user that all options should be parsed by getopt, with only the name of the filesystem left as an "extra" argument. Expected Results: Documentation should correctly show what is expected. It would also be nice to have it documented that the numbers should be integers which represent filesystem size in megabytes. It quickly became clear that "20m" is incorrect.
We (Red Hat) should really try to resolve this before next release.
Our installer team-lead thinks we should really fix this before next release.
tfox, I think he is right in that there must be an "=" sign. Can you correct the documentation?
Wait a minute, that's not right. "--onprimary" expects an "=" sign, but "--asprimary" takes no arguments. I think the original documentation is wrong...it needs to be explicit that asprimary does not take any arguements. Trying to pass one will cause python to complain.
I corrected the docs to reflect the difference between asprimary and onprimary and added an example of onprimary. I also added a note that the size and maxsize are in MB and only expect an integer value. Fixed in CVS