summaryrefslogtreecommitdiffstats
path: root/installclass.py
diff options
context:
space:
mode:
authorRadek Vykydal <rvykydal@redhat.com>2009-06-05 08:56:29 +0200
committerRadek Vykydal <rvykydal@redhat.com>2009-06-05 09:11:30 +0200
commit93fd07cd4cb46dad0d57bf216e603c8256751480 (patch)
treeab0bb49d566e9f0c52fabeeafdc9bf026a3ec957 /installclass.py
parentfee64fbdf603158229e371eaa848a3c44991c13a (diff)
downloadanaconda-93fd07cd4cb46dad0d57bf216e603c8256751480.tar.gz
anaconda-93fd07cd4cb46dad0d57bf216e603c8256751480.tar.xz
anaconda-93fd07cd4cb46dad0d57bf216e603c8256751480.zip
Fix discovery of existing raid/lvm for ks install without clearpart (#503310) (#503681)
Default clearPartType to None so that all devices are discovered during storage initialization step, and UI parttype can be set to its default "Replace existing linux system". Also set clearPartType appropriately when going back from partition dialog so that all devices are discovered during storage reset. There is one case that can't be resolved this way: clearpart --all or --linux is set in ks and "Create custom layout" is selected in parttype UI step. Because of ks setting, storage initialization doesn't discover devices (RAID, LVM) on partitions that are to be cleared and therefore they are not present in custom partition dialog. This can be workarounded by going back and than again to custom partitioning dialog. I think we should grey-out type of partitioning combo set to value from ks clearpart command.
Diffstat (limited to 'installclass.py')
-rw-r--r--installclass.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/installclass.py b/installclass.py
index 913444f18..d0f535d6f 100644
--- a/installclass.py
+++ b/installclass.py
@@ -187,8 +187,7 @@ class BaseInstallClass(object):
from backend import AnacondaBackend
return AnacondaBackend
- def setDefaultPartitioning(self, storage, platform,
- clear = CLEARPART_TYPE_LINUX, doClear = True):
+ def setDefaultPartitioning(self, storage, platform):
autorequests = [PartSpec(mountpoint="/", fstype=storage.defaultFSType,
size=1024, grow=True, asVol=True)]
@@ -200,12 +199,6 @@ class BaseInstallClass(object):
autorequests.append(PartSpec(fstype="swap", size=minswap, maxSize=maxswap,
grow=True, asVol=True))
- if doClear:
- storage.clearPartType = clear
- storage.clearPartDisks = []
- else:
- storage.clearPartType = CLEARPART_TYPE_NONE
-
storage.autoPartitionRequests = autorequests