Red Hat Bugzilla – Bug 107294
clearpart documentation misleading
Last modified: 2007-11-30 17:10:32 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003
Description of problem:
The clearpart documentation in
file:///usr/share/doc/anaconda-9.0.93/kickstart-docs.html is misleading. It states:
For example, the following clears the partitions on the first two
drives on the primary IDE controller:
clearpart --drives hda,hdb
This may have been true at one time, but now the default is CLEARPART_TYPE_NONE,
so this will do nothing. I suggest you change this example to:
clearpart --drives=hda,hdb --all
clearpart --drives=hda,hdb --linux
(Note the = which makes the example consistent with the syntax used in the
earlier part of the documentation.)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Kickstart on already partitioned drive with clearpart --drives=hda
Actual Results: Error message (reproduced here:
http://www.bohnsack.com/lists/archives/xcat-user/1457.html), because anaconda
can't add more partitions, since none were removed.
At this point, an fdisk -l will also show all the old paritions.
This is not expected behavior based on the example in the documentation.
Expected Results: Cleared partitions and successful kickstart.
Success is obtained with clearpart --drives=hda --all
This comes from the kickstart docs in the SAG. The SAG doc needs to be
fixed and then redumped to kickstart-docs.html and kickstart-docs.txt
for the anaconda package. Reassigning to new owner.
Sounds good... this will be updated in the SAG for the next release,
which will be RHEL4. Unless the developer for anaconda disagrees! :-)
Reassigning to developer who owns ananconda to update the man page.
Bug suggestion reviewed and approved for addition into the RHEL4-SAG.
Propogation to the /usr/share/doc/anaconda-*/kickstart-docs.html file
may come later, during a future RHEL4 Update.
Thanks for submitting the bug! :-)