diff options
author | Chris Lumens <clumens@redhat.com> | 2009-03-06 11:26:55 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-03-06 13:18:48 -0500 |
commit | 8f710f2c773a4af3a4fc652576dbda0db7380b44 (patch) | |
tree | 0552e14f1f92025d7f153bccf84d75cd115745e9 /installclass.py | |
parent | e7e0ad9239cb757ce18e07a8717dd06a9f032507 (diff) | |
download | anaconda-8f710f2c773a4af3a4fc652576dbda0db7380b44.tar.gz anaconda-8f710f2c773a4af3a4fc652576dbda0db7380b44.tar.xz anaconda-8f710f2c773a4af3a4fc652576dbda0db7380b44.zip |
Make sure autopart without any clearpart command will fail.
The crucial step here is making sure we set clearPartType to NONE in
setDefaultPartitioning when called with doClear=False. That's what we pass
in from the autopart kickstart command handler, and that's what forces you
to have to use clearpart if you want to remove existing partitions.
Diffstat (limited to 'installclass.py')
-rw-r--r-- | installclass.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/installclass.py b/installclass.py index 8e43df193..bca365e32 100644 --- a/installclass.py +++ b/installclass.py @@ -200,6 +200,8 @@ class BaseInstallClass(object): if doClear: storage.clearPartType = clear storage.clearPartDisks = [] + else: + storage.clearPartType = CLEARPART_TYPE_NONE storage.autoPartitionRequests = autorequests |